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
- AnonymousIdentificationSection.cs
- TextModifierScope.cs
- CacheSection.cs
- AxParameterData.cs
- StandardOleMarshalObject.cs
- FreezableCollection.cs
- ViewPort3D.cs
- Misc.cs
- StringReader.cs
- StrongNameIdentityPermission.cs
- SafeNativeMethods.cs
- NonceToken.cs
- PasswordTextNavigator.cs
- SerializeAbsoluteContext.cs
- MarkedHighlightComponent.cs
- ArithmeticException.cs
- ArrayMergeHelper.cs
- RtfToken.cs
- RemoveStoryboard.cs
- SmtpLoginAuthenticationModule.cs
- DurableDispatcherAddressingFault.cs
- NameValueCollection.cs
- EndpointInstanceProvider.cs
- MimeMapping.cs
- MinMaxParagraphWidth.cs
- ListItemCollection.cs
- ToolStripMenuItem.cs
- Claim.cs
- InstallHelper.cs
- KeyInfo.cs
- ScriptingJsonSerializationSection.cs
- ellipse.cs
- StrokeRenderer.cs
- SizeF.cs
- ControlBuilderAttribute.cs
- MethodCallConverter.cs
- ErrorFormatter.cs
- PointLightBase.cs
- CaseCqlBlock.cs
- DataGridViewRowsAddedEventArgs.cs
- DynamicControlParameter.cs
- EventKeyword.cs
- XmlSignatureManifest.cs
- CategoryValueConverter.cs
- TrustManagerPromptUI.cs
- DecoderBestFitFallback.cs
- InsufficientMemoryException.cs
- path.cs
- InputBuffer.cs
- Convert.cs
- Behavior.cs
- PerformanceCounterLib.cs
- ControlIdConverter.cs
- PartialList.cs
- FamilyCollection.cs
- ShowExpandedMultiValueConverter.cs
- OpenTypeCommon.cs
- WindowsImpersonationContext.cs
- EdmComplexTypeAttribute.cs
- Monitor.cs
- CompositeKey.cs
- PageAsyncTask.cs
- ShapingWorkspace.cs
- SqlDependencyListener.cs
- Resources.Designer.cs
- DataMemberListEditor.cs
- RecognizedPhrase.cs
- DistributedTransactionPermission.cs
- ToolBarDesigner.cs
- XmlElementCollection.cs
- EpmTargetTree.cs
- SchemaName.cs
- PreservationFileWriter.cs
- ListSortDescription.cs
- ApplicationDirectory.cs
- CompressedStack.cs
- SR.cs
- CategoryList.cs
- DataGridViewCellMouseEventArgs.cs
- SchemeSettingElementCollection.cs
- TableLayoutPanelCellPosition.cs
- ReadOnlyMetadataCollection.cs
- ListDictionary.cs
- PathStreamGeometryContext.cs
- LazyTextWriterCreator.cs
- PixelShader.cs
- PageBuildProvider.cs
- CapabilitiesAssignment.cs
- DoubleAnimationUsingKeyFrames.cs
- DbProviderFactory.cs
- ServiceNameCollection.cs
- SystemResources.cs
- PrintDialog.cs
- HtmlForm.cs
- ReferenceSchema.cs
- ObjectDataSourceView.cs
- Viewport2DVisual3D.cs
- GcSettings.cs
- RemotingAttributes.cs
- DataPagerFieldItem.cs