Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / ExclusiveNamedPipeTransportManager.cs / 1 / ExclusiveNamedPipeTransportManager.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Collections.Generic; using System.ServiceModel; using System.IO; using System.Text; using System.Threading; using System.ServiceModel.Diagnostics; using System.Diagnostics; using System.Security.Principal; sealed class ExclusiveNamedPipeTransportManager : NamedPipeTransportManager { ConnectionDemuxer connectionDemuxer; IConnectionListener connectionListener; public ExclusiveNamedPipeTransportManager(Uri listenUri, NamedPipeChannelListener channelListener) : base(listenUri) { ApplyListenerSettings(channelListener); SetHostNameComparisonMode(channelListener.HostNameComparisonMode); SetAllowedUsers(channelListener.AllowedUsers); } internal override void OnOpen() { connectionListener = new BufferedConnectionListener( new PipeConnectionListener(ListenUri, HostNameComparisonMode, ConnectionBufferSize, AllowedUsers, true, int.MaxValue), MaxOutputDelay, ConnectionBufferSize); if (DiagnosticUtility.ShouldUseActivity) { connectionListener = new TracingConnectionListener(connectionListener, this.ListenUri.ToString(), false); } connectionDemuxer = new ConnectionDemuxer(connectionListener, MaxPendingAccepts, MaxPendingConnections, ChannelInitializationTimeout, IdleTimeout, MaxPooledConnections, OnGetTransportFactorySettings, OnGetSingletonMessageHandler, OnHandleServerSessionPreamble, OnDemuxerError); bool startedDemuxing = false; try { connectionDemuxer.StartDemuxing(); startedDemuxing = true; } finally { if (!startedDemuxing) { connectionDemuxer.Dispose(); } } } internal override void OnClose() { connectionDemuxer.Dispose(); connectionListener.Dispose(); base.OnClose(); } } } // 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
- MD5CryptoServiceProvider.cs
- AttributeConverter.cs
- Canvas.cs
- Vector3dCollection.cs
- CompilerErrorCollection.cs
- SubMenuStyle.cs
- ServiceXNameTypeConverter.cs
- OleDbError.cs
- HttpHandlerAction.cs
- DataFieldCollectionEditor.cs
- ISCIIEncoding.cs
- MapPathBasedVirtualPathProvider.cs
- Vector3DCollectionConverter.cs
- LayoutEngine.cs
- ZipFileInfoCollection.cs
- Menu.cs
- EpmSyndicationContentSerializer.cs
- PeerNodeTraceRecord.cs
- ButtonFlatAdapter.cs
- XsltInput.cs
- PrePostDescendentsWalker.cs
- ExpandedWrapper.cs
- FloaterBaseParaClient.cs
- ResourceReferenceExpression.cs
- RepeaterDataBoundAdapter.cs
- StatusBarItem.cs
- DataGridViewSelectedColumnCollection.cs
- AlternationConverter.cs
- ButtonRenderer.cs
- RelationshipNavigation.cs
- FamilyMap.cs
- SystemIcons.cs
- AspNetHostingPermission.cs
- _StreamFramer.cs
- Rotation3DAnimation.cs
- TogglePattern.cs
- DefaultWorkflowLoaderService.cs
- PeerObject.cs
- SqlTypeSystemProvider.cs
- RequiredFieldValidator.cs
- XPathDocumentBuilder.cs
- ObjectTokenCategory.cs
- DateTimeFormatInfoScanner.cs
- Crypto.cs
- RoutedEventValueSerializer.cs
- ThemeDictionaryExtension.cs
- EncodingTable.cs
- _AcceptOverlappedAsyncResult.cs
- CodeDomLoader.cs
- CommunicationObjectManager.cs
- ConfigurationSectionGroupCollection.cs
- Compiler.cs
- OptimizedTemplateContentHelper.cs
- WebPartPersonalization.cs
- PolyLineSegmentFigureLogic.cs
- listitem.cs
- FixedHighlight.cs
- GenericUI.cs
- DelimitedListTraceListener.cs
- codemethodreferenceexpression.cs
- MatchSingleFxEngineOpcode.cs
- MarkedHighlightComponent.cs
- _CookieModule.cs
- TrackingMemoryStream.cs
- SymLanguageType.cs
- XmlHierarchyData.cs
- CodeCastExpression.cs
- MimeTypePropertyAttribute.cs
- SecurityKeyIdentifier.cs
- FontFamilyValueSerializer.cs
- BoundingRectTracker.cs
- PackageDigitalSignature.cs
- UxThemeWrapper.cs
- ToolStripItemImageRenderEventArgs.cs
- TabItemAutomationPeer.cs
- ProcessHostServerConfig.cs
- Serializer.cs
- PrincipalPermission.cs
- ParseHttpDate.cs
- invalidudtexception.cs
- TextElementEditingBehaviorAttribute.cs
- ContextMarshalException.cs
- PrtTicket_Base.cs
- IERequestCache.cs
- X509RecipientCertificateServiceElement.cs
- GcSettings.cs
- IndexerNameAttribute.cs
- ContainerParagraph.cs
- DataControlPagerLinkButton.cs
- Panel.cs
- LogExtentCollection.cs
- DropTarget.cs
- LineUtil.cs
- SafeNativeMemoryHandle.cs
- DataGridViewIntLinkedList.cs
- PropertyChangeTracker.cs
- MaskDescriptor.cs
- DataServiceSaveChangesEventArgs.cs
- CellIdBoolean.cs
- Native.cs