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
- PersonalizablePropertyEntry.cs
- MetricEntry.cs
- InputBindingCollection.cs
- AmbientValueAttribute.cs
- ExpressionConverter.cs
- CustomWebEventKey.cs
- SimpleBitVector32.cs
- ObjectContextServiceProvider.cs
- MembershipPasswordException.cs
- EntityProxyTypeInfo.cs
- DragDropManager.cs
- TemplateBamlTreeBuilder.cs
- TextTreeNode.cs
- WindowProviderWrapper.cs
- ObjectSet.cs
- FrameworkContextData.cs
- ContentDisposition.cs
- UIAgentRequest.cs
- dataprotectionpermission.cs
- SmiEventSink_Default.cs
- DbDataAdapter.cs
- XmlSchemaAnyAttribute.cs
- ProcessHost.cs
- SessionEndedEventArgs.cs
- X509ImageLogo.cs
- TraceXPathNavigator.cs
- AmbientValueAttribute.cs
- Instrumentation.cs
- DictionaryBase.cs
- ButtonChrome.cs
- WeakReference.cs
- HandledEventArgs.cs
- StoreItemCollection.Loader.cs
- NativeCppClassAttribute.cs
- PropertySourceInfo.cs
- XmlBaseWriter.cs
- TemplateAction.cs
- HtmlEncodedRawTextWriter.cs
- GcHandle.cs
- ContextMenuStrip.cs
- DescendantQuery.cs
- CheckBoxPopupAdapter.cs
- NumberFormatter.cs
- FrameworkContextData.cs
- SmtpLoginAuthenticationModule.cs
- ComponentResourceKeyConverter.cs
- BinaryWriter.cs
- HMACSHA256.cs
- ColumnCollectionEditor.cs
- ServiceDurableInstance.cs
- Maps.cs
- Button.cs
- SwitchAttribute.cs
- SchemaSetCompiler.cs
- SiteMapNode.cs
- RemoteWebConfigurationHost.cs
- followingquery.cs
- UxThemeWrapper.cs
- rsa.cs
- GACIdentityPermission.cs
- HyperLink.cs
- WS2007FederationHttpBinding.cs
- InputMethod.cs
- ApplicationId.cs
- XamlSerializationHelper.cs
- ConnectionInterfaceCollection.cs
- XmlBinaryReaderSession.cs
- SmiTypedGetterSetter.cs
- DataServiceException.cs
- DataConnectionHelper.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- GridViewRowCollection.cs
- CmsInterop.cs
- KeyInstance.cs
- ServiceOperationWrapper.cs
- SafeFindHandle.cs
- ColorTranslator.cs
- OleAutBinder.cs
- CommonRemoteMemoryBlock.cs
- KeyInstance.cs
- ChtmlCalendarAdapter.cs
- HwndHost.cs
- DocumentPaginator.cs
- XmlDocumentFragment.cs
- DetailsViewUpdatedEventArgs.cs
- LicenseProviderAttribute.cs
- DataGridColumnFloatingHeader.cs
- CodeBinaryOperatorExpression.cs
- OleDbDataAdapter.cs
- WebPartDescription.cs
- MetaDataInfo.cs
- AutoGeneratedFieldProperties.cs
- JpegBitmapDecoder.cs
- TreeNodeStyle.cs
- TypeNameConverter.cs
- IntSecurity.cs
- MenuItem.cs
- sapiproxy.cs
- SHA384Managed.cs
- StructuralType.cs