Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / SMSvcHost / System / ServiceModel / Activation / ListenerSingletonConnectionReader.cs / 1 / ListenerSingletonConnectionReader.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activation { using System.ServiceModel.Channels; class ListenerSingletonConnectionReader : DupHandleConnectionReader { ServerSingletonDecoder decoder; public ListenerSingletonConnectionReader(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 ServerSingletonDecoder(streamPosition, ListenerConstants.MaxUriSize, ListenerConstants.SharedMaxContentTypeSize); } protected override bool CanDupHandle(out Uri via) { if (decoder.CurrentState == ServerSingletonDecoder.State.ReadingContentTypeRecord) { 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
- TraceSource.cs
- CompositeDataBoundControl.cs
- AxImporter.cs
- ProviderCommandInfoUtils.cs
- AutoGeneratedFieldProperties.cs
- SafeLocalMemHandle.cs
- SoapAttributeAttribute.cs
- ProfileGroupSettingsCollection.cs
- WindowsScrollBarBits.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ExceptionNotification.cs
- InstanceDataCollectionCollection.cs
- DbMetaDataColumnNames.cs
- Parameter.cs
- DefaultTraceListener.cs
- XmlTextReaderImpl.cs
- ExtensionDataObject.cs
- ListItemConverter.cs
- WorkItem.cs
- TrackingProfileSerializer.cs
- DurationConverter.cs
- EntityProviderFactory.cs
- StatusBarDrawItemEvent.cs
- BlurEffect.cs
- UrlMappingCollection.cs
- QilStrConcat.cs
- ZipIORawDataFileBlock.cs
- ViewSimplifier.cs
- ItemCollection.cs
- MaskedTextProvider.cs
- BlurBitmapEffect.cs
- RelationalExpressions.cs
- CurrencyManager.cs
- RepeaterItem.cs
- HtmlImage.cs
- PartialTrustHelpers.cs
- SmiGettersStream.cs
- XmlSchemaSimpleContentRestriction.cs
- Stroke2.cs
- infer.cs
- XmlNotation.cs
- ObfuscationAttribute.cs
- XomlCompilerResults.cs
- DataAccessor.cs
- DataBinding.cs
- XmlSchemaExternal.cs
- CodeConstructor.cs
- DynamicILGenerator.cs
- Task.cs
- CultureInfoConverter.cs
- NodeLabelEditEvent.cs
- ConstructorArgumentAttribute.cs
- WorkflowLayouts.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SelectionProcessor.cs
- CompilerCollection.cs
- HtmlControl.cs
- StringUtil.cs
- EdgeProfileValidation.cs
- ColumnResult.cs
- SmtpAuthenticationManager.cs
- ParallelTimeline.cs
- WebPartExportVerb.cs
- TableLayoutColumnStyleCollection.cs
- DesignerOptions.cs
- KnownBoxes.cs
- VirtualizingStackPanel.cs
- DataSourceGeneratorException.cs
- WindowExtensionMethods.cs
- localization.cs
- LocalValueEnumerator.cs
- CharEntityEncoderFallback.cs
- VersionConverter.cs
- BuildProviderAppliesToAttribute.cs
- VisualStateChangedEventArgs.cs
- SchemaEntity.cs
- Compiler.cs
- Message.cs
- UInt32Storage.cs
- Win32.cs
- ChunkedMemoryStream.cs
- AssertSection.cs
- XmlSignificantWhitespace.cs
- OracleString.cs
- StructuredTypeEmitter.cs
- XPathDocument.cs
- WebPartChrome.cs
- SystemParameters.cs
- HttpServerVarsCollection.cs
- PictureBox.cs
- ObjectSet.cs
- Image.cs
- CommentGlyph.cs
- AnimationTimeline.cs
- PropertyConverter.cs
- SrgsOneOf.cs
- FlatButtonAppearance.cs
- PropertyGroupDescription.cs
- WebPartMenuStyle.cs
- ByteStorage.cs