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
- EventMappingSettings.cs
- GrammarBuilderWildcard.cs
- EventWaitHandle.cs
- DataReaderContainer.cs
- ApplicationManager.cs
- EntityTypeEmitter.cs
- RoutedCommand.cs
- WeakEventManager.cs
- RenderDataDrawingContext.cs
- WsdlBuildProvider.cs
- OrthographicCamera.cs
- AssemblyName.cs
- SetIndexBinder.cs
- PersonalizableAttribute.cs
- CounterCreationData.cs
- XPathNavigatorReader.cs
- DecoderExceptionFallback.cs
- SystemUnicastIPAddressInformation.cs
- WindowsTab.cs
- PersonalizableTypeEntry.cs
- SHA1CryptoServiceProvider.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- MailAddress.cs
- CacheOutputQuery.cs
- PropertyMappingExceptionEventArgs.cs
- SchemaTableOptionalColumn.cs
- SendContent.cs
- KeyInstance.cs
- ItemsPanelTemplate.cs
- SelectionRange.cs
- DecodeHelper.cs
- BooleanKeyFrameCollection.cs
- TaskExtensions.cs
- SqlUtils.cs
- FieldAccessException.cs
- FlowDocumentScrollViewer.cs
- LayoutEditorPart.cs
- Int64.cs
- SqlRecordBuffer.cs
- XpsSerializationManagerAsync.cs
- FormViewRow.cs
- InputDevice.cs
- Match.cs
- FilterException.cs
- WebPartDisplayModeCollection.cs
- XpsSerializerWriter.cs
- DiagnosticTraceRecords.cs
- DocumentSequenceHighlightLayer.cs
- SmtpReplyReader.cs
- BooleanProjectedSlot.cs
- XmlStreamNodeWriter.cs
- FaultDescription.cs
- AppDomainManager.cs
- ProfileProvider.cs
- GenericTextProperties.cs
- RegistrySecurity.cs
- MultidimensionalArrayItemReference.cs
- DotAtomReader.cs
- DataControlLinkButton.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- DataErrorValidationRule.cs
- CodeComment.cs
- RepeatInfo.cs
- PartialArray.cs
- SQLConvert.cs
- TopClause.cs
- Viewport3DVisual.cs
- JsonGlobals.cs
- PageVisual.cs
- Query.cs
- HttpHandlerAction.cs
- DesignTimeVisibleAttribute.cs
- OdbcHandle.cs
- GridEntry.cs
- HtmlFormAdapter.cs
- InterleavedZipPartStream.cs
- ImageCodecInfoPrivate.cs
- ReadOnlyDictionary.cs
- QilInvoke.cs
- RadioButton.cs
- CollectionViewGroup.cs
- RadialGradientBrush.cs
- Inline.cs
- BasePattern.cs
- DataTableMappingCollection.cs
- PrintPreviewGraphics.cs
- InputProcessorProfiles.cs
- EntitySqlQueryState.cs
- BuildProviderCollection.cs
- MachineKeyConverter.cs
- MetadataItemEmitter.cs
- WebUtil.cs
- FillBehavior.cs
- RelationshipConverter.cs
- WorkItem.cs
- SHA512Managed.cs
- ObjectTag.cs
- SafeBitVector32.cs
- UnwrappedTypesXmlSerializerManager.cs
- UnsafeNativeMethods.cs