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
- WebPartZoneBase.cs
- TailCallAnalyzer.cs
- Help.cs
- SortableBindingList.cs
- SpecialTypeDataContract.cs
- EntityRecordInfo.cs
- CompressionTransform.cs
- ButtonChrome.cs
- HtmlInputImage.cs
- Point4D.cs
- OutputScopeManager.cs
- FileClassifier.cs
- Message.cs
- TreeNodeStyleCollection.cs
- SafeFileMapViewHandle.cs
- MembershipUser.cs
- DataServiceQueryOfT.cs
- FontStyleConverter.cs
- LightweightCodeGenerator.cs
- XmlLangPropertyAttribute.cs
- PostBackOptions.cs
- HttpCacheVary.cs
- XmlCharCheckingWriter.cs
- _ServiceNameStore.cs
- EditCommandColumn.cs
- BitStack.cs
- CellLabel.cs
- PageSettings.cs
- CompressStream.cs
- IHttpResponseInternal.cs
- FixedPage.cs
- DataSourceHelper.cs
- PaperSource.cs
- MemberInfoSerializationHolder.cs
- FilterException.cs
- FontStyles.cs
- FixedSOMGroup.cs
- MenuItem.cs
- KeyInterop.cs
- MsmqIntegrationBindingElement.cs
- TextBoxLine.cs
- SerializeAbsoluteContext.cs
- TouchFrameEventArgs.cs
- SqlNotificationRequest.cs
- Durable.cs
- Win32.cs
- XamlInt32CollectionSerializer.cs
- ToolStripSettings.cs
- SafeLibraryHandle.cs
- Config.cs
- XamlClipboardData.cs
- parserscommon.cs
- OperandQuery.cs
- Rotation3D.cs
- _SecureChannel.cs
- StringValueConverter.cs
- Utils.cs
- ContainerFilterService.cs
- AuthenticationManager.cs
- OperandQuery.cs
- WorkflowIdleBehavior.cs
- SafeRightsManagementSessionHandle.cs
- CustomPopupPlacement.cs
- ManifestResourceInfo.cs
- DefaultBinder.cs
- SqlCacheDependencyDatabaseCollection.cs
- StringArrayConverter.cs
- TableTextElementCollectionInternal.cs
- NetStream.cs
- GcSettings.cs
- PortCache.cs
- XmlILIndex.cs
- Number.cs
- FactoryRecord.cs
- ReversePositionQuery.cs
- Collection.cs
- EnumMember.cs
- DateTimeConstantAttribute.cs
- TreeWalker.cs
- SqlTrackingQuery.cs
- GCHandleCookieTable.cs
- ReflectPropertyDescriptor.cs
- XmlSiteMapProvider.cs
- BitmapData.cs
- ToolStripItemRenderEventArgs.cs
- Operand.cs
- XmlNamespaceMappingCollection.cs
- HwndMouseInputProvider.cs
- WebPartTransformerCollection.cs
- ObjectDataSourceView.cs
- ExpandCollapseProviderWrapper.cs
- RegexCode.cs
- assertwrapper.cs
- DesignerAdapterUtil.cs
- XmlSchemaRedefine.cs
- FormViewModeEventArgs.cs
- CacheSection.cs
- TextDecorationCollectionConverter.cs
- PagesChangedEventArgs.cs
- EntityDataSourceDesigner.cs