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
- FeatureSupport.cs
- KeyInfo.cs
- RefreshResponseInfo.cs
- TextWriterTraceListener.cs
- RemotingSurrogateSelector.cs
- WindowsImpersonationContext.cs
- SemanticResolver.cs
- XmlReaderDelegator.cs
- RedirectionProxy.cs
- DiffuseMaterial.cs
- PopupRootAutomationPeer.cs
- StructuredTypeEmitter.cs
- EdmItemCollection.OcAssemblyCache.cs
- Grid.cs
- ObjectRef.cs
- RegexEditorDialog.cs
- ToolStripSettings.cs
- GeneralTransform3DGroup.cs
- ScriptReference.cs
- TimeBoundedCache.cs
- SharedStatics.cs
- RemoveStoryboard.cs
- DataGridViewLinkCell.cs
- SqlDataSourceConfigureSortForm.cs
- BinaryConverter.cs
- TransformerInfo.cs
- ConstraintManager.cs
- CheckBoxField.cs
- StorageSetMapping.cs
- ViewStateModeByIdAttribute.cs
- precedingquery.cs
- FunctionUpdateCommand.cs
- PageRanges.cs
- RecognizeCompletedEventArgs.cs
- PolicyStatement.cs
- SqlXml.cs
- XPathPatternParser.cs
- Cursors.cs
- LogWriteRestartAreaState.cs
- ColorAnimation.cs
- RIPEMD160.cs
- XmlNamedNodeMap.cs
- FunctionQuery.cs
- TableRowCollection.cs
- RemotingSurrogateSelector.cs
- LabelTarget.cs
- HighlightVisual.cs
- EntityDataSourceConfigureObjectContext.cs
- XmlSchemaType.cs
- Mutex.cs
- DetailsViewPageEventArgs.cs
- LinqDataSourceContextEventArgs.cs
- AsymmetricAlgorithm.cs
- XMLDiffLoader.cs
- QueryAccessibilityHelpEvent.cs
- TreeNodeCollectionEditor.cs
- CachedRequestParams.cs
- SafeArrayRankMismatchException.cs
- ComplexPropertyEntry.cs
- CodeMethodReturnStatement.cs
- ResourceContainer.cs
- _AcceptOverlappedAsyncResult.cs
- InternalDispatchObject.cs
- IRCollection.cs
- Trace.cs
- ConversionHelper.cs
- X500Name.cs
- Matrix.cs
- _OverlappedAsyncResult.cs
- DateTimeConverter2.cs
- CompositeActivityDesigner.cs
- InternalPermissions.cs
- XmlSchemas.cs
- StrokeSerializer.cs
- SqlNotificationEventArgs.cs
- _ListenerResponseStream.cs
- StringBuilder.cs
- AliasedSlot.cs
- ScalarConstant.cs
- FilePresentation.cs
- WhitespaceSignificantCollectionAttribute.cs
- DetailsViewUpdateEventArgs.cs
- GeneralTransform3DCollection.cs
- ParserExtension.cs
- WebPartEventArgs.cs
- Int32Collection.cs
- SmtpCommands.cs
- NameNode.cs
- SpellerError.cs
- CompositeFontInfo.cs
- AppDomainProtocolHandler.cs
- MessageBox.cs
- SqlRowUpdatingEvent.cs
- FacetValues.cs
- EmptyReadOnlyDictionaryInternal.cs
- SparseMemoryStream.cs
- EnumValidator.cs
- ContainerParaClient.cs
- DetailsViewDeletedEventArgs.cs
- StructuredTypeInfo.cs