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
- QilInvokeLateBound.cs
- Propagator.JoinPropagator.cs
- Ref.cs
- HelpKeywordAttribute.cs
- MarkupCompilePass2.cs
- DateTimeConverter.cs
- BooleanKeyFrameCollection.cs
- TypeConverterMarkupExtension.cs
- XPathExpr.cs
- HttpConfigurationContext.cs
- SystemNetworkInterface.cs
- StateMachineAction.cs
- ComPlusSynchronizationContext.cs
- LongCountAggregationOperator.cs
- ValidationEventArgs.cs
- HttpWebRequest.cs
- Exceptions.cs
- SwitchLevelAttribute.cs
- FatalException.cs
- ImplicitInputBrush.cs
- WebZoneDesigner.cs
- SqlMethodTransformer.cs
- _emptywebproxy.cs
- XmlDocumentSerializer.cs
- GAC.cs
- ActivityDesigner.cs
- DrawingContext.cs
- Point4DValueSerializer.cs
- CodeTypeConstructor.cs
- SessionPageStatePersister.cs
- DataSourceProvider.cs
- SchemaTableColumn.cs
- CodeTypeDelegate.cs
- DiscoveryOperationContextExtension.cs
- MonikerBuilder.cs
- HtmlInputSubmit.cs
- XpsFixedPageReaderWriter.cs
- AuthenticateEventArgs.cs
- XmlPreloadedResolver.cs
- SoapObjectReader.cs
- UnauthorizedAccessException.cs
- SQLRoleProvider.cs
- IRCollection.cs
- UnmanagedHandle.cs
- WebEventTraceProvider.cs
- RootBrowserWindow.cs
- LassoHelper.cs
- SystemBrushes.cs
- DataViewManager.cs
- EventDrivenDesigner.cs
- AbandonedMutexException.cs
- AsyncPostBackTrigger.cs
- IgnoreDataMemberAttribute.cs
- ToolStripDropDownClosedEventArgs.cs
- Application.cs
- ViewStateChangedEventArgs.cs
- xsdvalidator.cs
- EncoderNLS.cs
- SystemWebCachingSectionGroup.cs
- AddDataControlFieldDialog.cs
- ContentElementAutomationPeer.cs
- TagPrefixAttribute.cs
- UserControl.cs
- HttpInputStream.cs
- NotifyIcon.cs
- WebPartDescription.cs
- InputProcessorProfilesLoader.cs
- TabPage.cs
- Decoder.cs
- DataList.cs
- _DigestClient.cs
- PackUriHelper.cs
- ISAPIWorkerRequest.cs
- KeyValueSerializer.cs
- DesignerDeviceConfig.cs
- Substitution.cs
- NamespaceImport.cs
- SessionViewState.cs
- QueryParameter.cs
- SpnegoTokenAuthenticator.cs
- StackBuilderSink.cs
- TdsParserStateObject.cs
- ProtocolsConfigurationEntry.cs
- Brush.cs
- ClientFormsIdentity.cs
- SqlCacheDependency.cs
- SystemDiagnosticsSection.cs
- Int32Storage.cs
- LoginStatusDesigner.cs
- DataGridViewAccessibleObject.cs
- HwndKeyboardInputProvider.cs
- PrintEvent.cs
- SchemaComplexType.cs
- TransportContext.cs
- UnsupportedPolicyOptionsException.cs
- DesignerLoader.cs
- BitmapCache.cs
- QueryExpr.cs
- ApplicationServiceHelper.cs
- EntityViewContainer.cs