Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / SMSvcHost / System / ServiceModel / Activation / ListenerSingletonConnectionReader.cs / 1 / ListenerSingletonConnectionReader.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activation { using System.ServiceModel.Channels; class ListenerSingletonConnectionReader : DupHandleConnectionReader { ServerSingletonDecoder decoder; public ListenerSingletonConnectionReader(IConnection connection, ItemDequeuedCallback connectionDequeuedCallback, TransportType transportType, long streamPosition, int offset, int size, ConnectionClosedCallback closedCallback, ViaDecodedCallback viaDecodedCallback) : base(connection, connectionDequeuedCallback, transportType, offset, size, closedCallback, viaDecodedCallback) { this.decoder = new ServerSingletonDecoder(streamPosition, ListenerConstants.MaxUriSize, ListenerConstants.SharedMaxContentTypeSize); } protected override bool CanDupHandle(out Uri via) { if (decoder.CurrentState == ServerSingletonDecoder.State.ReadingContentTypeRecord) { via = decoder.Via; return true; } else { via = null; return false; } } protected override int Decode(byte[] buffer, int offset, int size) { return decoder.Decode(buffer, offset, size); } protected override Exception CreatePrematureEOFException() { return decoder.CreatePrematureEOFException(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MouseCaptureWithinProperty.cs
- HtmlInputReset.cs
- TrackingMemoryStreamFactory.cs
- Matrix3DValueSerializer.cs
- PageContentCollection.cs
- TextParagraphCache.cs
- EventLogPermissionEntry.cs
- DragEvent.cs
- XmlExpressionDumper.cs
- FixedFindEngine.cs
- X509Utils.cs
- DataControlFieldHeaderCell.cs
- EdmSchemaError.cs
- OdbcEnvironmentHandle.cs
- Control.cs
- DependencyObjectPropertyDescriptor.cs
- WebBrowser.cs
- BitmapSource.cs
- ProcessModelSection.cs
- SystemResourceKey.cs
- StringValidator.cs
- Command.cs
- CharacterMetrics.cs
- WebPartTransformerAttribute.cs
- ValidationSummary.cs
- StrokeDescriptor.cs
- StringFreezingAttribute.cs
- UserPreferenceChangedEventArgs.cs
- ListSortDescription.cs
- ServiceOperationParameter.cs
- ErrorStyle.cs
- DurableDispatcherAddressingFault.cs
- IndentedWriter.cs
- FixedLineResult.cs
- ContentType.cs
- BuildProviderAppliesToAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- QilBinary.cs
- ReadOnlyCollectionBase.cs
- TCPClient.cs
- NullableDoubleSumAggregationOperator.cs
- WaitHandleCannotBeOpenedException.cs
- ToolBarButton.cs
- ParserHooks.cs
- PointKeyFrameCollection.cs
- TabControlCancelEvent.cs
- MoveSizeWinEventHandler.cs
- DataServiceConfiguration.cs
- BuildProvider.cs
- SemaphoreSlim.cs
- WorkflowApplicationIdleEventArgs.cs
- SettingsPropertyCollection.cs
- HTMLTagNameToTypeMapper.cs
- XmlChoiceIdentifierAttribute.cs
- TdsParameterSetter.cs
- ConditionalWeakTable.cs
- ReadContentAsBinaryHelper.cs
- ComboBox.cs
- FragmentQueryProcessor.cs
- ScriptingRoleServiceSection.cs
- WmpBitmapDecoder.cs
- CustomSignedXml.cs
- SspiNegotiationTokenAuthenticatorState.cs
- EmptyReadOnlyDictionaryInternal.cs
- XmlSchemaType.cs
- WebConfigurationManager.cs
- XmlArrayItemAttribute.cs
- ConditionCollection.cs
- EncoderBestFitFallback.cs
- ResourceContainer.cs
- MessageBox.cs
- __TransparentProxy.cs
- XmlSignatureManifest.cs
- SpeechEvent.cs
- WebServicesSection.cs
- InvalidCastException.cs
- URLIdentityPermission.cs
- XmlMembersMapping.cs
- BookmarkEventArgs.cs
- DataGridViewImageColumn.cs
- KeyedHashAlgorithm.cs
- DataObjectSettingDataEventArgs.cs
- FontNamesConverter.cs
- StrokeFIndices.cs
- OleStrCAMarshaler.cs
- RouteItem.cs
- LinqDataSourceHelper.cs
- ReadWriteObjectLock.cs
- ServicePointManager.cs
- LineServicesRun.cs
- ContextProperty.cs
- BackgroundWorker.cs
- PolicyDesigner.cs
- RsaKeyIdentifierClause.cs
- SerializableAuthorizationContext.cs
- TableLayoutPanel.cs
- BamlTreeUpdater.cs
- TableRow.cs
- LinqDataView.cs
- cookieexception.cs