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
- DetailsViewDeletedEventArgs.cs
- BuildProviderUtils.cs
- FormViewInsertEventArgs.cs
- ToolStripRendererSwitcher.cs
- ValidationResults.cs
- DBParameter.cs
- InternalDispatchObject.cs
- TdsParserSessionPool.cs
- IdnElement.cs
- IdentityHolder.cs
- TimeSpanValidator.cs
- TabPageDesigner.cs
- TrackingMemoryStreamFactory.cs
- Label.cs
- MenuItemCollection.cs
- StrongNameIdentityPermission.cs
- ConfigXmlWhitespace.cs
- OracleParameterCollection.cs
- DbConnectionStringCommon.cs
- HtmlTernaryTree.cs
- Thumb.cs
- XPathDocumentIterator.cs
- DataServiceException.cs
- LinearKeyFrames.cs
- EventRouteFactory.cs
- DefaultTraceListener.cs
- XslAst.cs
- Byte.cs
- DocumentSchemaValidator.cs
- SystemPens.cs
- CategoryNameCollection.cs
- MissingSatelliteAssemblyException.cs
- ScriptModule.cs
- Trace.cs
- WebRequestModulesSection.cs
- UITypeEditors.cs
- AuthenticationService.cs
- LinkAreaEditor.cs
- SmtpException.cs
- Choices.cs
- Avt.cs
- StringResourceManager.cs
- LayoutUtils.cs
- Label.cs
- LinearQuaternionKeyFrame.cs
- UserControlParser.cs
- DataGridRow.cs
- VisualStyleRenderer.cs
- SoapObjectReader.cs
- ThreadExceptionEvent.cs
- WebBrowserSiteBase.cs
- OracleDataAdapter.cs
- _DisconnectOverlappedAsyncResult.cs
- Bitmap.cs
- QueuePathDialog.cs
- ColorAnimationBase.cs
- View.cs
- CaseInsensitiveHashCodeProvider.cs
- ExpressionEditor.cs
- TableChangeProcessor.cs
- ConfigUtil.cs
- RootAction.cs
- MeasureItemEvent.cs
- ImageDrawing.cs
- GACIdentityPermission.cs
- QilTargetType.cs
- FolderLevelBuildProvider.cs
- TdsParser.cs
- RowsCopiedEventArgs.cs
- TextTreeObjectNode.cs
- UnitySerializationHolder.cs
- TextHidden.cs
- TreeNodeMouseHoverEvent.cs
- SqlGenerator.cs
- WebHeaderCollection.cs
- ManagedWndProcTracker.cs
- XpsSerializerWriter.cs
- MarkupCompiler.cs
- DataGridViewColumnCollection.cs
- RadialGradientBrush.cs
- BitmapEffectRenderDataResource.cs
- FixedStringLookup.cs
- BuildResultCache.cs
- WorkflowRuntimeElement.cs
- BaseParser.cs
- AnonymousIdentificationSection.cs
- Stopwatch.cs
- PublisherMembershipCondition.cs
- ParamArrayAttribute.cs
- DataGridViewRowPostPaintEventArgs.cs
- AppDomainAttributes.cs
- LogSwitch.cs
- GetRecipientRequest.cs
- XmlNullResolver.cs
- ToolStripItemTextRenderEventArgs.cs
- GestureRecognitionResult.cs
- GridViewRowPresenter.cs
- SqlWebEventProvider.cs
- ThreadInterruptedException.cs
- FormViewUpdatedEventArgs.cs