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
- Quad.cs
- TextModifier.cs
- SystemResourceHost.cs
- XmlComment.cs
- MethodResolver.cs
- CustomValidator.cs
- InvokeBinder.cs
- DiscoveryRequestHandler.cs
- SafeSecurityHelper.cs
- SecurityIdentifierElementCollection.cs
- TextModifier.cs
- TcpTransportManager.cs
- ToolboxSnapDragDropEventArgs.cs
- Size3D.cs
- WebPartExportVerb.cs
- XhtmlBasicPanelAdapter.cs
- RtfToken.cs
- ObjectReferenceStack.cs
- FixedSOMSemanticBox.cs
- TextRunTypographyProperties.cs
- SoapExtension.cs
- TabControlAutomationPeer.cs
- Effect.cs
- UInt32.cs
- Native.cs
- PopupRootAutomationPeer.cs
- TimeSpanStorage.cs
- WebContext.cs
- SQLDouble.cs
- ListBox.cs
- VersionPair.cs
- DynamicILGenerator.cs
- SystemIPv4InterfaceProperties.cs
- ErrorTolerantObjectWriter.cs
- TextTrailingWordEllipsis.cs
- _AutoWebProxyScriptEngine.cs
- DataServiceKeyAttribute.cs
- Expression.DebuggerProxy.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- NotCondition.cs
- ListViewInsertedEventArgs.cs
- AssociatedControlConverter.cs
- Formatter.cs
- BindingElement.cs
- DeploymentExceptionMapper.cs
- QuaternionAnimationBase.cs
- IResourceProvider.cs
- DocumentPage.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DesignerToolboxInfo.cs
- _ConnectStream.cs
- ServicePointManager.cs
- XmlSchemaObject.cs
- MediaScriptCommandRoutedEventArgs.cs
- TemplateDefinition.cs
- Storyboard.cs
- ConfigViewGenerator.cs
- ContentValidator.cs
- RecordConverter.cs
- VisualProxy.cs
- MarkupObject.cs
- ProcessModelSection.cs
- WebDisplayNameAttribute.cs
- MailDefinition.cs
- NavigationHelper.cs
- TextBoxRenderer.cs
- DataGridTextBoxColumn.cs
- BulletChrome.cs
- ImageAnimator.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- PolicyFactory.cs
- SimpleNameService.cs
- ParameterCollectionEditorForm.cs
- DataObjectEventArgs.cs
- MiniMapControl.xaml.cs
- Regex.cs
- _Events.cs
- StorageRoot.cs
- ThreadAbortException.cs
- ConditionalAttribute.cs
- remotingproxy.cs
- TemplateGroupCollection.cs
- MetadataFile.cs
- ToolBarOverflowPanel.cs
- ResourceContainer.cs
- InkCanvas.cs
- SendMailErrorEventArgs.cs
- XmlAttributeCollection.cs
- ToolStripProgressBar.cs
- KeyGestureConverter.cs
- ActiveXSite.cs
- ComboBox.cs
- Schema.cs
- CheckableControlBaseAdapter.cs
- Win32Interop.cs
- HttpApplicationFactory.cs
- GlyphTypeface.cs
- QilReference.cs
- TypeConverterHelper.cs
- FusionWrap.cs