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
- SpecialTypeDataContract.cs
- SQLGuidStorage.cs
- ComponentChangedEvent.cs
- XamlFilter.cs
- EnumValAlphaComparer.cs
- PasswordTextNavigator.cs
- TargetConverter.cs
- X509Certificate.cs
- BitmapImage.cs
- AsymmetricKeyExchangeDeformatter.cs
- updateconfighost.cs
- cookieexception.cs
- SystemTcpConnection.cs
- StreamGeometry.cs
- QuotedStringFormatReader.cs
- CfgParser.cs
- ContentWrapperAttribute.cs
- EntityModelSchemaGenerator.cs
- Journaling.cs
- HttpResponseHeader.cs
- CodeDOMProvider.cs
- MetabaseServerConfig.cs
- PeerNameResolver.cs
- MetadataPropertyAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- KeysConverter.cs
- SmiTypedGetterSetter.cs
- XmlIgnoreAttribute.cs
- RNGCryptoServiceProvider.cs
- DynamicPropertyHolder.cs
- ClientOptions.cs
- PublishLicense.cs
- EditingCommands.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CreateUserWizardAutoFormat.cs
- CompilationUtil.cs
- UIElementPropertyUndoUnit.cs
- HttpHeaderCollection.cs
- SoapAttributeOverrides.cs
- ConfigurationPropertyAttribute.cs
- DataGridViewRowCancelEventArgs.cs
- Matrix3DStack.cs
- ExpressionVisitorHelpers.cs
- StateRuntime.cs
- EllipseGeometry.cs
- VersionedStream.cs
- StringResourceManager.cs
- GeometryModel3D.cs
- DebugHandleTracker.cs
- MultiSelectRootGridEntry.cs
- ProfileInfo.cs
- Rectangle.cs
- ForEachAction.cs
- UITypeEditor.cs
- SimpleWorkerRequest.cs
- SecurityRuntime.cs
- _AcceptOverlappedAsyncResult.cs
- ObjectDataSourceEventArgs.cs
- LifetimeServices.cs
- XPathBinder.cs
- XmlBindingWorker.cs
- BuildManagerHost.cs
- NumberSubstitution.cs
- HotSpotCollectionEditor.cs
- ValidationUtility.cs
- processwaithandle.cs
- SafeCryptHandles.cs
- LogPolicy.cs
- BackgroundWorker.cs
- SerialPort.cs
- Expression.cs
- ImageDrawing.cs
- NullableBoolConverter.cs
- OleDbStruct.cs
- ObjectQuery.cs
- TextRunTypographyProperties.cs
- CallTemplateAction.cs
- ControlBindingsCollection.cs
- DataTableMapping.cs
- IPAddressCollection.cs
- Operand.cs
- IDataContractSurrogate.cs
- DataSet.cs
- BoolExpression.cs
- HMACSHA256.cs
- MailAddressCollection.cs
- Bits.cs
- UDPClient.cs
- Int32RectValueSerializer.cs
- ConsoleKeyInfo.cs
- Size3D.cs
- XmlSchemaDatatype.cs
- HotSpot.cs
- XmlConvert.cs
- CardSpaceSelector.cs
- IIS7UserPrincipal.cs
- UriTemplateCompoundPathSegment.cs
- OSFeature.cs
- ListViewInsertEventArgs.cs
- XamlGridLengthSerializer.cs