Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ChannelPoolSettingsElement.cs / 1 / ChannelPoolSettingsElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; using System.Globalization; using System.Net.Security; using System.ServiceModel.Security; using System.ComponentModel; public sealed partial class ChannelPoolSettingsElement : ConfigurationElement { public ChannelPoolSettingsElement() { } [ConfigurationProperty(ConfigurationStrings.IdleTimeout, DefaultValue = OneWayDefaults.IdleTimeoutString)] [TypeConverter(typeof(TimeSpanOrInfiniteConverter))] [ServiceModelTimeSpanValidator(MinValueString = ConfigurationStrings.TimeSpanZero)] public TimeSpan IdleTimeout { get { return (TimeSpan)base[ConfigurationStrings.IdleTimeout]; } set { base[ConfigurationStrings.IdleTimeout] = value; } } [ConfigurationProperty(ConfigurationStrings.LeaseTimeout, DefaultValue = OneWayDefaults.LeaseTimeoutString)] [TypeConverter(typeof(TimeSpanOrInfiniteConverter))] [ServiceModelTimeSpanValidator(MinValueString = ConfigurationStrings.TimeSpanZero)] public TimeSpan LeaseTimeout { get { return (TimeSpan)base[ConfigurationStrings.LeaseTimeout]; } set { base[ConfigurationStrings.LeaseTimeout] = value; } } [ConfigurationProperty(ConfigurationStrings.MaxOutboundChannelsPerEndpoint, DefaultValue = OneWayDefaults.MaxOutboundChannelsPerEndpoint)] [IntegerValidator(MinValue = 1)] public int MaxOutboundChannelsPerEndpoint { get { return (int)base[ConfigurationStrings.MaxOutboundChannelsPerEndpoint]; } set { base[ConfigurationStrings.MaxOutboundChannelsPerEndpoint] = value; } } internal void ApplyConfiguration(ChannelPoolSettings settings) { if (null == settings) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings"); } settings.IdleTimeout = this.IdleTimeout; settings.LeaseTimeout = this.LeaseTimeout; settings.MaxOutboundChannelsPerEndpoint = this.MaxOutboundChannelsPerEndpoint; } internal void InitializeFrom(ChannelPoolSettings settings) { if (null == settings) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings"); } this.IdleTimeout = settings.IdleTimeout; this.LeaseTimeout = settings.LeaseTimeout; this.MaxOutboundChannelsPerEndpoint = settings.MaxOutboundChannelsPerEndpoint; } internal void CopyFrom(ChannelPoolSettingsElement source) { if (null == source) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source"); } this.IdleTimeout = source.IdleTimeout; this.LeaseTimeout = source.LeaseTimeout; this.MaxOutboundChannelsPerEndpoint = source.MaxOutboundChannelsPerEndpoint; } } } // 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
- TransportContext.cs
- ConditionBrowserDialog.cs
- DataGridViewRowStateChangedEventArgs.cs
- ProviderConnectionPoint.cs
- TitleStyle.cs
- ListViewItem.cs
- HtmlInputControl.cs
- WCFBuildProvider.cs
- MatrixTransform3D.cs
- _AutoWebProxyScriptHelper.cs
- HttpException.cs
- TrustLevelCollection.cs
- CombinedTcpChannel.cs
- DataPagerFieldItem.cs
- SerializerDescriptor.cs
- AttributeUsageAttribute.cs
- DefaultValueAttribute.cs
- CompiledQueryCacheKey.cs
- MembershipUser.cs
- InvalidCommandTreeException.cs
- Util.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- EncoderFallback.cs
- ValidationError.cs
- DataGridViewButtonCell.cs
- PartialCachingAttribute.cs
- ConfigXmlComment.cs
- XMLSyntaxException.cs
- LookupBindingPropertiesAttribute.cs
- FileStream.cs
- ProfilePropertySettingsCollection.cs
- MailDefinition.cs
- DataSourceHelper.cs
- FixedSOMLineCollection.cs
- CodeSnippetCompileUnit.cs
- MouseEvent.cs
- UnsafeNativeMethods.cs
- Vector3DCollection.cs
- CalendarBlackoutDatesCollection.cs
- ModulesEntry.cs
- AnnotationHelper.cs
- FileUtil.cs
- RenderContext.cs
- FindProgressChangedEventArgs.cs
- TemplateControl.cs
- SymbolMethod.cs
- FrameworkElement.cs
- PackagingUtilities.cs
- ProjectionAnalyzer.cs
- ExceptionUtil.cs
- QilTargetType.cs
- TraversalRequest.cs
- EllipticalNodeOperations.cs
- FrugalList.cs
- SystemIPGlobalProperties.cs
- PagedDataSource.cs
- Effect.cs
- ActiveDocumentEvent.cs
- GroupStyle.cs
- IdentityValidationException.cs
- Clock.cs
- Facet.cs
- XmlAutoDetectWriter.cs
- DataGridItem.cs
- SchemaNames.cs
- SafeNativeMethods.cs
- Object.cs
- Int32.cs
- IxmlLineInfo.cs
- VisualStateGroup.cs
- SqlDataSource.cs
- EventlogProvider.cs
- MemberMaps.cs
- TableRowGroupCollection.cs
- ExplicitDiscriminatorMap.cs
- StaticContext.cs
- ItemCheckedEvent.cs
- DefaultValueConverter.cs
- RenderingBiasValidation.cs
- SymbolPair.cs
- GeometryCollection.cs
- SiteMapSection.cs
- KeyEventArgs.cs
- StringOutput.cs
- TimeSpanStorage.cs
- unitconverter.cs
- ContentPropertyAttribute.cs
- ValueTypeFixupInfo.cs
- ApplicationCommands.cs
- VariableAction.cs
- Figure.cs
- ClientUrlResolverWrapper.cs
- MouseGestureConverter.cs
- IconHelper.cs
- BuildProvider.cs
- ComboBoxItem.cs
- CharUnicodeInfo.cs
- MaterialGroup.cs
- Event.cs
- SafeLocalAllocation.cs