Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / NamedPipeConnectionPoolSettingsElement.cs / 1 / NamedPipeConnectionPoolSettingsElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.ServiceModel; using System.ServiceModel.Channels; using System.Configuration; using System.Xml; using System.ComponentModel; public sealed partial class NamedPipeConnectionPoolSettingsElement : ConfigurationElement { public NamedPipeConnectionPoolSettingsElement() { } [ConfigurationProperty(ConfigurationStrings.GroupName, DefaultValue = ConnectionOrientedTransportDefaults.ConnectionPoolGroupName)] [StringValidator(MinLength = 0)] public string GroupName { get { return (string)base[ConfigurationStrings.GroupName]; } set { if (String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.GroupName] = value; } } [ConfigurationProperty(ConfigurationStrings.IdleTimeout, DefaultValue = ConnectionOrientedTransportDefaults.IdleTimeoutString)] [TypeConverter(typeof(TimeSpanOrInfiniteConverter))] [ServiceModelTimeSpanValidator(MinValueString = ConfigurationStrings.TimeSpanZero)] public TimeSpan IdleTimeout { get { return (TimeSpan)base[ConfigurationStrings.IdleTimeout]; } set { base[ConfigurationStrings.IdleTimeout] = value; } } [ConfigurationProperty(ConfigurationStrings.MaxOutboundConnectionsPerEndpoint, DefaultValue = ConnectionOrientedTransportDefaults.MaxOutboundConnectionsPerEndpoint)] [IntegerValidator(MinValue = 0)] public int MaxOutboundConnectionsPerEndpoint { get { return (int)base[ConfigurationStrings.MaxOutboundConnectionsPerEndpoint]; } set { base[ConfigurationStrings.MaxOutboundConnectionsPerEndpoint] = value; } } internal void ApplyConfiguration(NamedPipeConnectionPoolSettings settings) { if (null == settings) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings"); } settings.GroupName = this.GroupName; settings.IdleTimeout = this.IdleTimeout; settings.MaxOutboundConnectionsPerEndpoint = this.MaxOutboundConnectionsPerEndpoint; } internal void InitializeFrom(NamedPipeConnectionPoolSettings settings) { if (null == settings) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings"); } this.GroupName = settings.GroupName; this.IdleTimeout = settings.IdleTimeout; this.MaxOutboundConnectionsPerEndpoint = settings.MaxOutboundConnectionsPerEndpoint; } internal void CopyFrom(NamedPipeConnectionPoolSettingsElement source) { if (source == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source"); } this.GroupName = source.GroupName; this.IdleTimeout = source.IdleTimeout; this.MaxOutboundConnectionsPerEndpoint = source.MaxOutboundConnectionsPerEndpoint; } } } // 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
- CompilerState.cs
- TextElement.cs
- HttpListener.cs
- CategoryGridEntry.cs
- MultipleViewPatternIdentifiers.cs
- InvokeMethodActivityDesigner.cs
- OdbcConnectionString.cs
- LocationUpdates.cs
- NetworkCredential.cs
- wgx_exports.cs
- SingleObjectCollection.cs
- DefaultEventAttribute.cs
- ConnectionInterfaceCollection.cs
- ToolStripOverflowButton.cs
- EncryptedData.cs
- CollaborationHelperFunctions.cs
- IisTraceListener.cs
- SqlDataSourceStatusEventArgs.cs
- WebColorConverter.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Odbc32.cs
- SocketAddress.cs
- _Events.cs
- TabControlDesigner.cs
- WebEncodingValidator.cs
- TextTreePropertyUndoUnit.cs
- InstancePersistenceContext.cs
- EncodingStreamWrapper.cs
- ServerIdentity.cs
- ISAPIRuntime.cs
- loginstatus.cs
- LayoutInformation.cs
- TextBlock.cs
- _ConnectStream.cs
- UxThemeWrapper.cs
- ToolStripContentPanel.cs
- TdsRecordBufferSetter.cs
- ListCollectionView.cs
- HttpCapabilitiesSectionHandler.cs
- CustomPopupPlacement.cs
- TcpSocketManager.cs
- DesignTimeTemplateParser.cs
- UpDownEvent.cs
- HwndSourceParameters.cs
- CheckBoxAutomationPeer.cs
- ListView.cs
- CodeGroup.cs
- Light.cs
- FormViewUpdateEventArgs.cs
- EdmToObjectNamespaceMap.cs
- DispatcherEventArgs.cs
- CodeObject.cs
- ButtonBaseAutomationPeer.cs
- ConditionalAttribute.cs
- ListBindingConverter.cs
- TextChangedEventArgs.cs
- GlyphRunDrawing.cs
- TextDecoration.cs
- DefaultPropertyAttribute.cs
- BindingList.cs
- X509CertificateTokenFactoryCredential.cs
- XmlIncludeAttribute.cs
- ThumbButtonInfoCollection.cs
- BamlLocalizableResourceKey.cs
- ElementHost.cs
- Validator.cs
- ServiceNotStartedException.cs
- DesignTimeVisibleAttribute.cs
- QilUnary.cs
- MetadataArtifactLoaderFile.cs
- HtmlObjectListAdapter.cs
- DynamicValidator.cs
- DSACryptoServiceProvider.cs
- PageParser.cs
- StructuralType.cs
- SymLanguageType.cs
- GlyphRunDrawing.cs
- StreamReader.cs
- DbXmlEnabledProviderManifest.cs
- EpmContentSerializerBase.cs
- Compiler.cs
- SaveFileDialog.cs
- InfoCardCryptoHelper.cs
- WindowsGraphicsCacheManager.cs
- ModelPropertyDescriptor.cs
- XmlWrappingReader.cs
- SecurityKeyUsage.cs
- XhtmlConformanceSection.cs
- DeadCharTextComposition.cs
- HyperLinkField.cs
- DefaultExpression.cs
- SerializationBinder.cs
- ShortcutKeysEditor.cs
- IteratorFilter.cs
- Model3D.cs
- AccessDataSource.cs
- IDQuery.cs
- EntityClassGenerator.cs
- ViewDesigner.cs
- CommandCollectionEditor.cs