Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / NamedPipeChannelFactory.cs / 1 / NamedPipeChannelFactory.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- // Enable this to dump the contents of a connection to a file. //#define CONNECTIONDUMP namespace System.ServiceModel.Channels { using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using System.Threading; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Diagnostics; class NamedPipeChannelFactory: ConnectionOrientedTransportChannelFactory { static NamedPipeConnectionPoolRegistry connectionPoolRegistry = new NamedPipeConnectionPoolRegistry(); public NamedPipeChannelFactory(NamedPipeTransportBindingElement bindingElement, BindingContext context) : base(bindingElement, context, bindingElement.ConnectionPoolSettings.GroupName, bindingElement.ConnectionPoolSettings.IdleTimeout, bindingElement.ConnectionPoolSettings.MaxOutboundConnectionsPerEndpoint) { } public override string Scheme { get { return Uri.UriSchemeNetPipe; } } internal override IConnectionInitiator GetConnectionInitiator() { IConnectionInitiator pipeConnectionInitiator = new PipeConnectionInitiator(false, ConnectionBufferSize); #if CONNECTIONDUMP pipeConnectionInitiator = new ConnectionDumpInitiator(pipeConnectionInitiator); #endif return new BufferedConnectionInitiator(pipeConnectionInitiator, MaxOutputDelay, ConnectionBufferSize); } internal override ConnectionPool GetConnectionPool() { return connectionPoolRegistry.Lookup(this); } internal override void ReleaseConnectionPool(ConnectionPool pool, TimeSpan timeout) { connectionPoolRegistry.Release(pool, timeout); } protected override bool SupportsUpgrade(StreamUpgradeBindingElement upgradeBindingElement) { return !(upgradeBindingElement is SslStreamSecurityBindingElement); } } } // 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
- DataContractSet.cs
- ErrorHandler.cs
- AuthenticationModuleElement.cs
- PageThemeBuildProvider.cs
- ListBoxItemWrapperAutomationPeer.cs
- EntityDataSourceContainerNameItem.cs
- ObjectStateManagerMetadata.cs
- IntAverageAggregationOperator.cs
- LineInfo.cs
- SQLConvert.cs
- DrawingVisualDrawingContext.cs
- IDispatchConstantAttribute.cs
- WpfWebRequestHelper.cs
- CompiledIdentityConstraint.cs
- SatelliteContractVersionAttribute.cs
- BindingMemberInfo.cs
- SoapServerMessage.cs
- FeatureSupport.cs
- TypeReference.cs
- ColorConverter.cs
- Border.cs
- XmlNavigatorStack.cs
- DataListItemEventArgs.cs
- ActivityBuilderHelper.cs
- dbenumerator.cs
- HybridDictionary.cs
- MulticastDelegate.cs
- HostSecurityManager.cs
- BindingSource.cs
- EnumValidator.cs
- BitmapEffectGroup.cs
- IxmlLineInfo.cs
- StylusEditingBehavior.cs
- ActivityMarkupSerializationProvider.cs
- ApplicationBuildProvider.cs
- SqlTrackingWorkflowInstance.cs
- WebPartEventArgs.cs
- SSmlParser.cs
- RawStylusInputCustomDataList.cs
- OracleException.cs
- DeferrableContentConverter.cs
- ClientRoleProvider.cs
- SortFieldComparer.cs
- TimeSpan.cs
- CriticalFinalizerObject.cs
- MarkupObject.cs
- AlphaSortedEnumConverter.cs
- CorrelationToken.cs
- IndentedWriter.cs
- AutomationFocusChangedEventArgs.cs
- CompiledQueryCacheEntry.cs
- _HeaderInfoTable.cs
- NamedPipeHostedTransportConfiguration.cs
- ListItemParagraph.cs
- ProxyFragment.cs
- CodeMemberField.cs
- ChangePassword.cs
- ComponentChangedEvent.cs
- ProviderConnectionPoint.cs
- UnsafeNativeMethods.cs
- UInt32Converter.cs
- Rectangle.cs
- DocumentViewerHelper.cs
- ObjectQuery.cs
- Function.cs
- SequenceNumber.cs
- SqlNotificationEventArgs.cs
- ListDictionaryInternal.cs
- _DynamicWinsockMethods.cs
- XmlDataSourceView.cs
- ExitEventArgs.cs
- ExceptionRoutedEventArgs.cs
- DataControlImageButton.cs
- TextEditorContextMenu.cs
- EntryIndex.cs
- ServiceAuthorizationManager.cs
- IsolatedStoragePermission.cs
- StatusBarPanel.cs
- DataGridColumnHeadersPresenter.cs
- CriticalHandle.cs
- Compilation.cs
- ExtenderProvidedPropertyAttribute.cs
- ContextStack.cs
- CodeAccessPermission.cs
- AdapterUtil.cs
- XmlDataCollection.cs
- Transaction.cs
- TransactionOptions.cs
- WarningException.cs
- DataSourceControlBuilder.cs
- httpapplicationstate.cs
- BamlVersionHeader.cs
- ExpressionConverter.cs
- DbDataRecord.cs
- KnownTypeAttribute.cs
- PropertyEntry.cs
- RsaSecurityToken.cs
- WaitHandle.cs
- LoginName.cs
- XmlEventCache.cs