Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / SMSvcHost / System / ServiceModel / Activation / ListenerSessionConnectionReader.cs / 1 / ListenerSessionConnectionReader.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activation { using System.ServiceModel.Channels; class ListenerSessionConnectionReader : DupHandleConnectionReader { ServerSessionDecoder decoder; public ListenerSessionConnectionReader(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 ServerSessionDecoder(streamPosition, ListenerConstants.MaxUriSize, ListenerConstants.SharedMaxContentTypeSize); } protected override bool CanDupHandle(out Uri via) { if (decoder.CurrentState == ServerSessionDecoder.State.PreUpgradeStart) { 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
- SmiMetaData.cs
- SinglePhaseEnlistment.cs
- UmAlQuraCalendar.cs
- StructureChangedEventArgs.cs
- SchemaImporterExtensionElementCollection.cs
- SqlStream.cs
- SimpleWebHandlerParser.cs
- QueryAccessibilityHelpEvent.cs
- Empty.cs
- AnnotationHelper.cs
- WindowsTitleBar.cs
- CodeMethodReturnStatement.cs
- DisplayMemberTemplateSelector.cs
- ProgressBarBrushConverter.cs
- WebPartDisplayMode.cs
- Soap12ProtocolImporter.cs
- ClientConfigurationHost.cs
- ListItemConverter.cs
- XmlSchemaComplexContentRestriction.cs
- SqlCacheDependencyDatabaseCollection.cs
- Authorization.cs
- CryptoHelper.cs
- OutOfMemoryException.cs
- filewebrequest.cs
- XmlSchemaNotation.cs
- RenderContext.cs
- DocumentPage.cs
- X509Certificate2Collection.cs
- SafeNativeMethodsMilCoreApi.cs
- NodeLabelEditEvent.cs
- PlatformCulture.cs
- StateRuntime.cs
- FixedSOMSemanticBox.cs
- EnumerableRowCollectionExtensions.cs
- ListViewInsertEventArgs.cs
- LineBreakRecord.cs
- NaturalLanguageHyphenator.cs
- TextWriterTraceListener.cs
- ParenthesizePropertyNameAttribute.cs
- ButtonPopupAdapter.cs
- InternalControlCollection.cs
- CatalogPart.cs
- InstalledVoice.cs
- HttpChannelBindingToken.cs
- Freezable.cs
- AnimatedTypeHelpers.cs
- WindowsStartMenu.cs
- EncoderExceptionFallback.cs
- DSACryptoServiceProvider.cs
- CalendarDateChangedEventArgs.cs
- XmlDataSourceView.cs
- HttpRuntime.cs
- ChannelServices.cs
- PropertyDescriptor.cs
- StreamGeometry.cs
- PageCache.cs
- SpotLight.cs
- ObjectParameterCollection.cs
- ExceptionUtil.cs
- NamespaceDecl.cs
- RuntimeHandles.cs
- XmlReflectionMember.cs
- IsolatedStoragePermission.cs
- HashRepartitionEnumerator.cs
- DataReaderContainer.cs
- BufferedGraphicsManager.cs
- CapabilitiesSection.cs
- HttpApplicationFactory.cs
- Vector3DCollection.cs
- OdbcParameterCollection.cs
- XmlSchemaSimpleContent.cs
- FixedSOMImage.cs
- BitmapMetadataBlob.cs
- GradientStop.cs
- OleDbConnectionInternal.cs
- Socket.cs
- VisualTarget.cs
- RealProxy.cs
- __ComObject.cs
- PLINQETWProvider.cs
- DateTimeSerializationSection.cs
- PointAnimationClockResource.cs
- ScrollBarAutomationPeer.cs
- FontWeightConverter.cs
- StylusTip.cs
- ReflectionPermission.cs
- TypeElement.cs
- AnnotationAuthorChangedEventArgs.cs
- FilterEventArgs.cs
- XmlSchemaAll.cs
- XmlAttributeHolder.cs
- EndpointDiscoveryElement.cs
- versioninfo.cs
- CommandHelper.cs
- ImageAutomationPeer.cs
- SqlStatistics.cs
- HijriCalendar.cs
- ToolStripInSituService.cs
- TextChangedEventArgs.cs
- TypeDescriptionProviderAttribute.cs