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
- StrongBox.cs
- ConstructorNeedsTagAttribute.cs
- WebPartPersonalization.cs
- FileAuthorizationModule.cs
- IPAddressCollection.cs
- PersianCalendar.cs
- SHA1CryptoServiceProvider.cs
- CustomPopupPlacement.cs
- SerializationInfoEnumerator.cs
- TripleDESCryptoServiceProvider.cs
- ClientRoleProvider.cs
- GridView.cs
- WebPartExportVerb.cs
- CompositeFontFamily.cs
- WinEventHandler.cs
- HotSpotCollection.cs
- ToolStripDropDown.cs
- ViewPort3D.cs
- SpeakProgressEventArgs.cs
- ProtocolsConfigurationEntry.cs
- UnsignedPublishLicense.cs
- ViewManagerAttribute.cs
- GridToolTip.cs
- RoleGroup.cs
- Console.cs
- IndexedEnumerable.cs
- WindowsPen.cs
- XmlRootAttribute.cs
- EventSinkHelperWriter.cs
- QilSortKey.cs
- Pair.cs
- ParagraphVisual.cs
- DeclarativeCatalogPart.cs
- SafeProcessHandle.cs
- InputProcessorProfilesLoader.cs
- ScriptResourceMapping.cs
- QueryTask.cs
- XmlC14NWriter.cs
- WebBrowserContainer.cs
- Label.cs
- BlobPersonalizationState.cs
- followingquery.cs
- QueryableDataSourceHelper.cs
- StatusBarDrawItemEvent.cs
- GroupBox.cs
- XmlElement.cs
- CodeRegionDirective.cs
- MetadataCache.cs
- GAC.cs
- MsmqReceiveParameters.cs
- ProfessionalColors.cs
- SecondaryIndex.cs
- EditCommandColumn.cs
- PhonemeConverter.cs
- RichTextBoxAutomationPeer.cs
- XmlUTF8TextReader.cs
- QueryUtil.cs
- OutputCacheProfile.cs
- LinqDataSourceStatusEventArgs.cs
- BlurEffect.cs
- LinkLabelLinkClickedEvent.cs
- SingleSelectRootGridEntry.cs
- PresentationSource.cs
- DbConnectionPoolIdentity.cs
- TransformerInfoCollection.cs
- ArrayElementGridEntry.cs
- EdmEntityTypeAttribute.cs
- safesecurityhelperavalon.cs
- PolyLineSegment.cs
- CorrelationTokenInvalidatedHandler.cs
- DesignerOptions.cs
- Soap12ServerProtocol.cs
- AlternateViewCollection.cs
- Mapping.cs
- GenericAuthenticationEventArgs.cs
- ZipIOExtraFieldElement.cs
- OperationAbortedException.cs
- UrlPropertyAttribute.cs
- MappingMetadataHelper.cs
- FlowDocument.cs
- SafeNativeMethods.cs
- CancelEventArgs.cs
- NamedPipeHostedTransportConfiguration.cs
- DummyDataSource.cs
- WindowsGrip.cs
- TreeView.cs
- Hyperlink.cs
- DisplayNameAttribute.cs
- CustomTypeDescriptor.cs
- TypedReference.cs
- LogicalMethodInfo.cs
- DebugView.cs
- SelectionEditor.cs
- DataGridViewRowHeaderCell.cs
- TextServicesPropertyRanges.cs
- MonthChangedEventArgs.cs
- DetailsViewPagerRow.cs
- TraceSection.cs
- DiffuseMaterial.cs
- EntityDataSourceChangingEventArgs.cs