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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlEntity.cs
- UseLicense.cs
- HttpModuleCollection.cs
- SystemColorTracker.cs
- SrgsGrammarCompiler.cs
- IIS7WorkerRequest.cs
- ToolStripLabel.cs
- PiiTraceSource.cs
- SchemaHelper.cs
- TransformerInfoCollection.cs
- DataGridViewRowCancelEventArgs.cs
- TypeElementCollection.cs
- GeometryHitTestParameters.cs
- ComplexPropertyEntry.cs
- DiscoveryReferences.cs
- Formatter.cs
- PathGradientBrush.cs
- DirtyTextRange.cs
- ExtendedProtectionPolicyElement.cs
- DomainUpDown.cs
- MessageSecurityException.cs
- ExclusiveHandle.cs
- DomainConstraint.cs
- GridViewUpdateEventArgs.cs
- PolicyVersionConverter.cs
- ScrollData.cs
- TypeDescriptor.cs
- TreeNodeBinding.cs
- SingleObjectCollection.cs
- CompilerGlobalScopeAttribute.cs
- SecurityException.cs
- SqlFactory.cs
- DataRelationCollection.cs
- ClientSideQueueItem.cs
- UnicodeEncoding.cs
- ThreadInterruptedException.cs
- DocumentPaginator.cs
- Typeface.cs
- BooleanStorage.cs
- ClrPerspective.cs
- ViewUtilities.cs
- InstanceDataCollectionCollection.cs
- FixedTextContainer.cs
- _ConnectStream.cs
- ChangeInterceptorAttribute.cs
- WindowsImpersonationContext.cs
- HelpExampleGenerator.cs
- EdgeModeValidation.cs
- BufferedStream.cs
- ConfigurationElementProperty.cs
- UpdateEventArgs.cs
- DataObjectMethodAttribute.cs
- RijndaelManagedTransform.cs
- ImageButton.cs
- CodeTypeMember.cs
- ZoomingMessageFilter.cs
- XmlStringTable.cs
- SubqueryTrackingVisitor.cs
- DesignerResources.cs
- OdbcEnvironmentHandle.cs
- OLEDB_Util.cs
- ValidationEventArgs.cs
- UriWriter.cs
- AttributeAction.cs
- HttpHandler.cs
- ListItemParagraph.cs
- OleDbMetaDataFactory.cs
- ContextMenuService.cs
- WebHttpEndpoint.cs
- ProfileEventArgs.cs
- DependencyPropertyConverter.cs
- InvalidWMPVersionException.cs
- DbMetaDataColumnNames.cs
- ConcurrentDictionary.cs
- KeyNotFoundException.cs
- SerializationInfo.cs
- OneWayBindingElement.cs
- HashAlgorithm.cs
- SafeFileMappingHandle.cs
- ListViewInsertEventArgs.cs
- LayoutEditorPart.cs
- BitmapEffectCollection.cs
- webbrowsersite.cs
- DataRelationPropertyDescriptor.cs
- NamedPermissionSet.cs
- MappingException.cs
- VariableAction.cs
- SqlConnectionFactory.cs
- CodeIdentifiers.cs
- PeerTransportBindingElement.cs
- TableLayoutStyleCollection.cs
- EmbeddedMailObject.cs
- XamlVector3DCollectionSerializer.cs
- InvalidProgramException.cs
- _TLSstream.cs
- ListBox.cs
- ExceptionAggregator.cs
- WebPartVerbCollection.cs
- SyndicationSerializer.cs
- GridItemPatternIdentifiers.cs