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
- ColorContext.cs
- FieldDescriptor.cs
- NavigationHelper.cs
- Sentence.cs
- EntityDataSourceMemberPath.cs
- RootBrowserWindow.cs
- EnumConverter.cs
- StylusPlugInCollection.cs
- CatalogPartCollection.cs
- AutomationProperty.cs
- WebControl.cs
- SetterBaseCollection.cs
- ManualResetEvent.cs
- DataGridTextBox.cs
- SqlTypeConverter.cs
- elementinformation.cs
- MeshGeometry3D.cs
- FileLoadException.cs
- SqlDataSourceConfigureFilterForm.cs
- ListBase.cs
- XmlSchemaSimpleTypeUnion.cs
- CustomAttribute.cs
- Currency.cs
- X509ChainPolicy.cs
- RequestValidator.cs
- FixedSOMTable.cs
- Track.cs
- UpdateException.cs
- WS2007FederationHttpBindingCollectionElement.cs
- HttpFileCollection.cs
- CqlLexerHelpers.cs
- SharedPerformanceCounter.cs
- PersistenceProvider.cs
- _SafeNetHandles.cs
- CrossAppDomainChannel.cs
- TextServicesManager.cs
- SourceLineInfo.cs
- CapabilitiesRule.cs
- SessionEndingCancelEventArgs.cs
- DataGridViewLinkCell.cs
- ObjectDataSourceWizardForm.cs
- SqlDuplicator.cs
- PinnedBufferMemoryStream.cs
- LiteralControl.cs
- IdentityReference.cs
- SchemaExporter.cs
- TypeExtension.cs
- SafePointer.cs
- HtmlUtf8RawTextWriter.cs
- ServiceDeploymentInfo.cs
- BaseParser.cs
- XmlSchemaSimpleContentRestriction.cs
- InkCanvasInnerCanvas.cs
- QueryContinueDragEvent.cs
- ResourceContainer.cs
- StringInfo.cs
- PropertyItemInternal.cs
- C14NUtil.cs
- UnsignedPublishLicense.cs
- shaperfactoryquerycacheentry.cs
- ButtonColumn.cs
- DataGridViewCellParsingEventArgs.cs
- AuthStoreRoleProvider.cs
- Crc32.cs
- GlobalizationAssembly.cs
- BamlRecordReader.cs
- DataGridViewTopLeftHeaderCell.cs
- SqlFlattener.cs
- SingleAnimationBase.cs
- ReferencedAssembly.cs
- PropertyTab.cs
- AttributeTable.cs
- SQLRoleProvider.cs
- CodeSubDirectoriesCollection.cs
- ServiceEndpointCollection.cs
- NonValidatingSecurityTokenAuthenticator.cs
- WebHttpSecurityElement.cs
- PermissionAttributes.cs
- QuaternionAnimation.cs
- StateWorkerRequest.cs
- StringArrayConverter.cs
- SoapAttributeOverrides.cs
- SmtpTransport.cs
- ToolStripSplitStackLayout.cs
- PageCache.cs
- BuildDependencySet.cs
- UITypeEditor.cs
- RSAProtectedConfigurationProvider.cs
- ValidationErrorEventArgs.cs
- SamlSerializer.cs
- Aggregates.cs
- DocumentApplication.cs
- LinkArea.cs
- AspNetHostingPermission.cs
- DomNameTable.cs
- RayHitTestParameters.cs
- DbDataReader.cs
- ModifierKeysValueSerializer.cs
- DynamicILGenerator.cs
- DataGridLinkButton.cs