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
- ShaderEffect.cs
- ChannelDispatcherBase.cs
- WebPartConnectVerb.cs
- RealProxy.cs
- CipherData.cs
- LayoutInformation.cs
- EventLogEntry.cs
- HttpPostedFileWrapper.cs
- PaintEvent.cs
- MenuItemBindingCollection.cs
- SharedHttpTransportManager.cs
- MessagePropertyAttribute.cs
- ScaleTransform3D.cs
- DataGridTemplateColumn.cs
- PackageRelationshipCollection.cs
- ContentTextAutomationPeer.cs
- SpellerError.cs
- MenuStrip.cs
- StylusPointProperty.cs
- SplitterPanel.cs
- UTF7Encoding.cs
- Array.cs
- FormsAuthenticationModule.cs
- HttpAsyncResult.cs
- DataGridViewButtonCell.cs
- Keywords.cs
- ContainerParaClient.cs
- SoapSchemaImporter.cs
- StorageModelBuildProvider.cs
- TextBoxRenderer.cs
- IndexerHelper.cs
- FixedPage.cs
- IIS7UserPrincipal.cs
- IImplicitResourceProvider.cs
- DesignerForm.cs
- SafeArrayTypeMismatchException.cs
- TrailingSpaceComparer.cs
- DBDataPermission.cs
- PointLightBase.cs
- FormViewInsertedEventArgs.cs
- BufferedStream.cs
- ImageBrush.cs
- ObjectCacheHost.cs
- PropertyIDSet.cs
- JsonMessageEncoderFactory.cs
- ViewgenGatekeeper.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SessionStateModule.cs
- Asn1Utilities.cs
- ConnectionStringsSection.cs
- GridView.cs
- TextCharacters.cs
- MinimizableAttributeTypeConverter.cs
- SocketAddress.cs
- SymbolTable.cs
- XmlSerializationGeneratedCode.cs
- DataRow.cs
- XmlBaseWriter.cs
- DispatcherObject.cs
- RoleManagerModule.cs
- Tile.cs
- Message.cs
- Int32.cs
- DataSourceView.cs
- BindingExpressionUncommonField.cs
- TypefaceMetricsCache.cs
- ConfigurationLocation.cs
- PersonalizableAttribute.cs
- DataRowCollection.cs
- EventlogProvider.cs
- FixedDocumentSequencePaginator.cs
- AtlasWeb.Designer.cs
- Exceptions.cs
- PathSegmentCollection.cs
- DetailsViewPageEventArgs.cs
- TableRowCollection.cs
- HScrollProperties.cs
- Options.cs
- HttpCapabilitiesEvaluator.cs
- RestrictedTransactionalPackage.cs
- FormParameter.cs
- ToolStripStatusLabel.cs
- SharedStatics.cs
- WindowsListViewItemStartMenu.cs
- File.cs
- TypeDependencyAttribute.cs
- DoubleKeyFrameCollection.cs
- Ref.cs
- AssemblyNameProxy.cs
- XamlStyleSerializer.cs
- XmlDocumentSerializer.cs
- DetailsViewRowCollection.cs
- URLIdentityPermission.cs
- InternalConfigSettingsFactory.cs
- processwaithandle.cs
- ValidatorCompatibilityHelper.cs
- StructuralCache.cs
- ArraySet.cs
- DataContractJsonSerializer.cs
- ValidationHelper.cs