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
- ComAdminWrapper.cs
- SecurityTokenSerializer.cs
- WebAdminConfigurationHelper.cs
- InstanceKeyCompleteException.cs
- PeerConnector.cs
- PolyLineSegment.cs
- StringBuilder.cs
- WorkerRequest.cs
- CorrelationTokenTypeConvertor.cs
- MobileContainerDesigner.cs
- SqlNotificationEventArgs.cs
- ErrorRuntimeConfig.cs
- HtmlTableRow.cs
- OracleTransaction.cs
- DbConnectionPool.cs
- TextBoxBase.cs
- MailSettingsSection.cs
- X509SecurityTokenProvider.cs
- PersonalizableTypeEntry.cs
- IndexedString.cs
- LinqDataSourceStatusEventArgs.cs
- SafeCoTaskMem.cs
- GorillaCodec.cs
- WinInet.cs
- ValueTable.cs
- DataGridViewColumn.cs
- SqlError.cs
- TcpPortSharing.cs
- RegexCode.cs
- WebServiceResponseDesigner.cs
- WindowsListViewScroll.cs
- SequenceNumber.cs
- FixedSOMElement.cs
- X509KeyIdentifierClauseType.cs
- SmtpFailedRecipientsException.cs
- Separator.cs
- SerializationException.cs
- RoutedUICommand.cs
- DataTemplateKey.cs
- UInt64.cs
- ActivityExecutorOperation.cs
- BuildProviderCollection.cs
- Crc32Helper.cs
- CodeStatement.cs
- SafeMILHandle.cs
- ObjectDataSourceChooseMethodsPanel.cs
- WindowsListViewItem.cs
- DataFormats.cs
- EntityDataSourceView.cs
- ShaperBuffers.cs
- SurrogateEncoder.cs
- SchemaImporterExtensionElement.cs
- DependencyPropertyChangedEventArgs.cs
- DiscreteKeyFrames.cs
- ResourceDictionary.cs
- RenderDataDrawingContext.cs
- EntityDataSourceValidationException.cs
- StreamGeometry.cs
- DatePickerTextBox.cs
- AnchorEditor.cs
- StrokeNodeData.cs
- Vector3DConverter.cs
- Pipe.cs
- Serializer.cs
- DeferredReference.cs
- CodeDomConfigurationHandler.cs
- TokenBasedSet.cs
- DelegatedStream.cs
- WebPartEditorApplyVerb.cs
- AlternateView.cs
- AnnouncementEndpointElement.cs
- DocumentGridContextMenu.cs
- ETagAttribute.cs
- GeneratedContractType.cs
- CompilerError.cs
- WebHostUnsafeNativeMethods.cs
- PathStreamGeometryContext.cs
- Delegate.cs
- MailBnfHelper.cs
- PrintPageEvent.cs
- QilDataSource.cs
- FileAuthorizationModule.cs
- RoleService.cs
- DataPagerFieldCollection.cs
- ItemChangedEventArgs.cs
- WSHttpBindingBaseElement.cs
- _NetworkingPerfCounters.cs
- DataColumn.cs
- GenericAuthenticationEventArgs.cs
- WebServicesDescriptionAttribute.cs
- XmlSchemaImporter.cs
- DateTimeConverter.cs
- SoapCodeExporter.cs
- GeneratedCodeAttribute.cs
- EventInfo.cs
- XmlAggregates.cs
- MetafileEditor.cs
- cookieexception.cs
- TransactionState.cs
- XPathSingletonIterator.cs