Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / NamedPipeConnectionPoolSettings.cs / 1 / NamedPipeConnectionPoolSettings.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { public sealed class NamedPipeConnectionPoolSettings { string groupName; TimeSpan idleTimeout; int maxOutputConnectionsPerEndpoint; internal NamedPipeConnectionPoolSettings() { groupName = ConnectionOrientedTransportDefaults.ConnectionPoolGroupName; idleTimeout = ConnectionOrientedTransportDefaults.IdleTimeout; maxOutputConnectionsPerEndpoint = ConnectionOrientedTransportDefaults.MaxOutboundConnectionsPerEndpoint; } internal NamedPipeConnectionPoolSettings(NamedPipeConnectionPoolSettings namedPipe) { this.groupName = namedPipe.groupName; this.idleTimeout = namedPipe.idleTimeout; this.maxOutputConnectionsPerEndpoint = namedPipe.maxOutputConnectionsPerEndpoint; } public string GroupName { get { return this.groupName; } set { if (value == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); this.groupName = value; } } public TimeSpan IdleTimeout { get { return this.idleTimeout; } set { if (value < TimeSpan.Zero) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SR.GetString(SR.SFxTimeoutOutOfRange0))); } if (TimeoutHelper.IsTooLarge(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SR.GetString(SR.SFxTimeoutOutOfRangeTooBig))); } this.idleTimeout = value; } } public int MaxOutboundConnectionsPerEndpoint { get { return this.maxOutputConnectionsPerEndpoint; } set { if (value < 0) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SR.GetString(SR.ValueMustBeNonNegative))); this.maxOutputConnectionsPerEndpoint = value; } } internal NamedPipeConnectionPoolSettings Clone() { return new NamedPipeConnectionPoolSettings(this); } internal bool IsMatch(NamedPipeConnectionPoolSettings namedPipe) { if (this.groupName != namedPipe.groupName) return false; if (this.idleTimeout != namedPipe.idleTimeout) return false; if (this.maxOutputConnectionsPerEndpoint != namedPipe.maxOutputConnectionsPerEndpoint) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsListViewGroup.cs
- UnaryNode.cs
- RegisteredExpandoAttribute.cs
- LazyTextWriterCreator.cs
- WebProxyScriptElement.cs
- WithStatement.cs
- SimpleParser.cs
- oledbmetadatacollectionnames.cs
- EventLogWatcher.cs
- validation.cs
- ActivityExecutionContextCollection.cs
- InstalledVoice.cs
- X509ChainPolicy.cs
- SystemException.cs
- BindingExpression.cs
- Group.cs
- TextEvent.cs
- FontCollection.cs
- BindingValueChangedEventArgs.cs
- DataControlFieldCell.cs
- DebugView.cs
- XmlSecureResolver.cs
- ServerIdentity.cs
- AsymmetricSignatureDeformatter.cs
- XmlQueryOutput.cs
- SmiContext.cs
- IndividualDeviceConfig.cs
- XhtmlConformanceSection.cs
- InternalsVisibleToAttribute.cs
- SecurityDocument.cs
- EntityDataSourceView.cs
- SqlCacheDependencySection.cs
- TextRunTypographyProperties.cs
- CellQuery.cs
- RegexRunnerFactory.cs
- SAPICategories.cs
- TextBoxView.cs
- AsyncStreamReader.cs
- WindowsToolbar.cs
- ArgumentNullException.cs
- DataGridViewButtonColumn.cs
- XamlSerializerUtil.cs
- ClientSettings.cs
- AtomContentProperty.cs
- SpoolingTask.cs
- NumberSubstitution.cs
- DefinitionUpdate.cs
- SqlInternalConnection.cs
- RadioButtonPopupAdapter.cs
- GatewayDefinition.cs
- WindowsComboBox.cs
- DrawingAttributes.cs
- FixedPageProcessor.cs
- BamlLocalizableResourceKey.cs
- SerializationSectionGroup.cs
- TypedElement.cs
- DynamicActivityTypeDescriptor.cs
- CodeTypeParameter.cs
- UserNamePasswordValidationMode.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- GPPOINTF.cs
- LockRecursionException.cs
- XslNumber.cs
- Soap.cs
- SpellerInterop.cs
- XmlElementList.cs
- InsufficientMemoryException.cs
- WorkflowControlEndpoint.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- CookieParameter.cs
- UnitySerializationHolder.cs
- ZipIOExtraFieldPaddingElement.cs
- DataGridrowEditEndingEventArgs.cs
- DataListItemCollection.cs
- Math.cs
- FilterableAttribute.cs
- MessageQueueTransaction.cs
- BinaryEditor.cs
- Control.cs
- CodeTypeReferenceCollection.cs
- HtmlInputButton.cs
- XmlnsCompatibleWithAttribute.cs
- MessageBox.cs
- CodeNamespace.cs
- ReadingWritingEntityEventArgs.cs
- DecimalAnimationBase.cs
- SmiContext.cs
- RequestCachingSection.cs
- ReachNamespaceInfo.cs
- EntitySetDataBindingList.cs
- ImageListImageEditor.cs
- WebPartConnectionsCancelVerb.cs
- Variant.cs
- RecognizedWordUnit.cs
- HttpException.cs
- ManagedIStream.cs
- OleDbRowUpdatingEvent.cs
- HiddenFieldPageStatePersister.cs
- XmlSchemaFacet.cs
- PathFigureCollection.cs