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
- ParseNumbers.cs
- FixedSOMContainer.cs
- MailDefinitionBodyFileNameEditor.cs
- ObservableCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- XmlnsCache.cs
- LoadWorkflowByKeyAsyncResult.cs
- RecognizedWordUnit.cs
- LinqDataSource.cs
- PackageRelationshipSelector.cs
- DataGridViewButtonColumn.cs
- DependencyPropertyValueSerializer.cs
- EdmTypeAttribute.cs
- PolicyStatement.cs
- AuthenticationConfig.cs
- Polygon.cs
- Accessors.cs
- GPStream.cs
- AppDomainProtocolHandler.cs
- EntitySqlQueryBuilder.cs
- SolidColorBrush.cs
- WizardPanelChangingEventArgs.cs
- KoreanLunisolarCalendar.cs
- TdsParser.cs
- _SpnDictionary.cs
- ButtonStandardAdapter.cs
- SqlDataReaderSmi.cs
- DbSource.cs
- QuotedPairReader.cs
- DataBoundControlAdapter.cs
- AttributeEmitter.cs
- URLMembershipCondition.cs
- HttpHandlersSection.cs
- BinaryNode.cs
- StrongTypingException.cs
- securitycriticaldata.cs
- VerticalAlignConverter.cs
- CodeMethodInvokeExpression.cs
- securitycriticaldataClass.cs
- XmlDocumentSerializer.cs
- ListViewTableCell.cs
- EmptyEnumerator.cs
- XmlAttributes.cs
- securitycriticaldataformultiplegetandset.cs
- TextEncodedRawTextWriter.cs
- Activator.cs
- CompilerTypeWithParams.cs
- AvTraceDetails.cs
- ProfilePropertySettings.cs
- OuterGlowBitmapEffect.cs
- PrimaryKeyTypeConverter.cs
- TypeListConverter.cs
- ExclusiveHandleList.cs
- X509CertificateTokenFactoryCredential.cs
- LinqDataSource.cs
- StreamUpdate.cs
- wmiprovider.cs
- RemoteWebConfigurationHost.cs
- InvariantComparer.cs
- KeyMatchBuilder.cs
- DrawingAttributeSerializer.cs
- COM2Enum.cs
- Crc32.cs
- Thread.cs
- StrokeNodeOperations2.cs
- VisualTreeUtils.cs
- ProtocolViolationException.cs
- ApplicationTrust.cs
- CapacityStreamGeometryContext.cs
- MethodBuilder.cs
- AspNetSynchronizationContext.cs
- ReadOnlyAttribute.cs
- UrlUtility.cs
- FilterElement.cs
- Line.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- CssTextWriter.cs
- NameScope.cs
- OdbcFactory.cs
- TableFieldsEditor.cs
- RemotingAttributes.cs
- BamlBinaryReader.cs
- ListBoxItem.cs
- SoapDocumentServiceAttribute.cs
- LabelLiteral.cs
- Currency.cs
- ContextMenu.cs
- XmlSchemaType.cs
- HttpRequestWrapper.cs
- DataGridCommandEventArgs.cs
- FixedDocumentPaginator.cs
- NetPipeSection.cs
- TickBar.cs
- HttpListenerResponse.cs
- OutputCacheSettings.cs
- ExpressionConverter.cs
- XmlValidatingReader.cs
- XsltCompileContext.cs
- NameSpaceExtractor.cs
- EntityExpressionVisitor.cs