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
- StateMachineWorkflowInstance.cs
- HttpCookiesSection.cs
- DiffuseMaterial.cs
- StringOutput.cs
- DataSpaceManager.cs
- TdsValueSetter.cs
- ImmutableObjectAttribute.cs
- NonVisualControlAttribute.cs
- RuleCache.cs
- SqlBuilder.cs
- QilFactory.cs
- XmlExpressionDumper.cs
- BrushConverter.cs
- WorkflowTransactionOptions.cs
- PreloadedPackages.cs
- ReadOnlyDataSourceView.cs
- WebHostedComPlusServiceHost.cs
- TableCellCollection.cs
- EqualityComparer.cs
- UntypedNullExpression.cs
- PageContent.cs
- DynamicActivity.cs
- LOSFormatter.cs
- RemoteWebConfigurationHost.cs
- PerformanceCounterCategory.cs
- DesignTimeParseData.cs
- Monitor.cs
- BCLDebug.cs
- CqlWriter.cs
- ADConnectionHelper.cs
- X500Name.cs
- GraphicsContext.cs
- PixelFormat.cs
- NetSectionGroup.cs
- Propagator.Evaluator.cs
- ProcessProtocolHandler.cs
- HTMLTagNameToTypeMapper.cs
- NumberFormatInfo.cs
- DataColumnMappingCollection.cs
- FrameworkElement.cs
- ProtocolElement.cs
- ResourceDictionaryCollection.cs
- IconConverter.cs
- dbenumerator.cs
- StrokeCollection.cs
- COM2AboutBoxPropertyDescriptor.cs
- WsatConfiguration.cs
- SizeConverter.cs
- AttributeUsageAttribute.cs
- PointCollection.cs
- input.cs
- Color.cs
- ReadOnlyHierarchicalDataSourceView.cs
- FastEncoderWindow.cs
- Metafile.cs
- MatchSingleFxEngineOpcode.cs
- DesignerActionUIService.cs
- FrameworkTemplate.cs
- TextBlockAutomationPeer.cs
- MutexSecurity.cs
- XPathAncestorQuery.cs
- FixedStringLookup.cs
- NameSpaceExtractor.cs
- DBCSCodePageEncoding.cs
- WindowsTokenRoleProvider.cs
- PointLight.cs
- ConfigXmlSignificantWhitespace.cs
- KeyedPriorityQueue.cs
- OdbcConnectionOpen.cs
- String.cs
- CompiledQueryCacheEntry.cs
- CatalogPartCollection.cs
- MenuAutomationPeer.cs
- PersistenceProviderElement.cs
- ReferenceConverter.cs
- PerformanceCounter.cs
- CoTaskMemSafeHandle.cs
- PassportAuthenticationEventArgs.cs
- CapiSymmetricAlgorithm.cs
- WebPartEditVerb.cs
- LabelEditEvent.cs
- PersistenceProviderFactory.cs
- DocumentReference.cs
- Input.cs
- Debug.cs
- CodeExpressionRuleDeclaration.cs
- webeventbuffer.cs
- SiteMapPathDesigner.cs
- PointCollection.cs
- ToolboxItem.cs
- DataGridViewColumnDesigner.cs
- MediaContextNotificationWindow.cs
- UtilityExtension.cs
- VersionedStreamOwner.cs
- SimpleWebHandlerParser.cs
- StylusTip.cs
- Stylesheet.cs
- DocumentReference.cs
- _NegotiateClient.cs
- DataBindingExpressionBuilder.cs