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
- DummyDataSource.cs
- EventEntry.cs
- RC2.cs
- UIElementIsland.cs
- SingleKeyFrameCollection.cs
- CacheAxisQuery.cs
- DictionaryKeyPropertyAttribute.cs
- ContractMapping.cs
- ImageMapEventArgs.cs
- TypeElement.cs
- DoubleLink.cs
- FormsAuthenticationEventArgs.cs
- TreeViewAutomationPeer.cs
- IItemProperties.cs
- ServiceInfo.cs
- MobileControlDesigner.cs
- XmlSerializableServices.cs
- ASCIIEncoding.cs
- SplayTreeNode.cs
- DiscreteKeyFrames.cs
- WindowInteropHelper.cs
- BaseAsyncResult.cs
- XmlNotation.cs
- ProcessHostConfigUtils.cs
- PaperSize.cs
- TreeViewImageGenerator.cs
- RequestBringIntoViewEventArgs.cs
- ClientCultureInfo.cs
- DataColumn.cs
- ZipIOExtraField.cs
- CatalogZoneAutoFormat.cs
- ThemeDirectoryCompiler.cs
- ToolboxItemLoader.cs
- InitializerFacet.cs
- ControlHelper.cs
- DataBoundLiteralControl.cs
- DataServiceHostFactory.cs
- EnvelopedPkcs7.cs
- SHA384Cng.cs
- EntityDesignerUtils.cs
- _NTAuthentication.cs
- SelectedCellsCollection.cs
- OracleConnectionString.cs
- GridViewDesigner.cs
- Span.cs
- X509Extension.cs
- SessionPageStatePersister.cs
- DesignerUtils.cs
- StringAnimationUsingKeyFrames.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Transform.cs
- FormatSettings.cs
- InfoCardCryptoHelper.cs
- RoleManagerModule.cs
- MemoryStream.cs
- CodeLinePragma.cs
- DataGridViewSelectedRowCollection.cs
- SectionUpdates.cs
- ParallelTimeline.cs
- FieldToken.cs
- DictionaryContent.cs
- CodeNamespaceCollection.cs
- RemoteWebConfigurationHost.cs
- GeometryCollection.cs
- RandomDelaySendsAsyncResult.cs
- WebPartCatalogCloseVerb.cs
- _SpnDictionary.cs
- DbReferenceCollection.cs
- UnsafeNativeMethods.cs
- RegisterInfo.cs
- RefreshEventArgs.cs
- XmlLoader.cs
- ParserHooks.cs
- QueryCorrelationInitializer.cs
- StringUtil.cs
- BindingNavigator.cs
- MetadataItemEmitter.cs
- CommandDevice.cs
- SecurityDocument.cs
- ThreadExceptionEvent.cs
- MessageBox.cs
- StorageAssociationSetMapping.cs
- TextServicesCompartmentContext.cs
- CompiledXpathExpr.cs
- SystemEvents.cs
- ScriptBehaviorDescriptor.cs
- Variant.cs
- PersistenceException.cs
- MailHeaderInfo.cs
- ListViewCommandEventArgs.cs
- SafePEFileHandle.cs
- WindowsTitleBar.cs
- DataContractAttribute.cs
- HttpCapabilitiesEvaluator.cs
- UnitySerializationHolder.cs
- BaseTreeIterator.cs
- ParamArrayAttribute.cs
- DesignerToolboxInfo.cs
- ValueType.cs
- BaseCollection.cs