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
- ErrorsHelper.cs
- RSAOAEPKeyExchangeFormatter.cs
- DataGridViewIntLinkedList.cs
- StylusPointPropertyInfo.cs
- TextServicesCompartmentEventSink.cs
- XmlAnyElementAttributes.cs
- DependentList.cs
- ListViewCancelEventArgs.cs
- Query.cs
- LinqDataView.cs
- BamlLocalizationDictionary.cs
- NestPullup.cs
- OdbcHandle.cs
- PublishLicense.cs
- BitmapEffectvisualstate.cs
- SizeAnimationBase.cs
- uribuilder.cs
- WsdlBuildProvider.cs
- SecurityPolicySection.cs
- DataDesignUtil.cs
- SafeFileHandle.cs
- TrackingProfile.cs
- DocumentGridPage.cs
- TranslateTransform3D.cs
- ICspAsymmetricAlgorithm.cs
- XsltSettings.cs
- XPathNavigatorReader.cs
- SqlConnectionHelper.cs
- PerformanceCounter.cs
- BitVector32.cs
- ActivityExecutorDelegateInfo.cs
- ConfigurationException.cs
- ConnectionInterfaceCollection.cs
- MaskedTextBoxTextEditor.cs
- WizardDesigner.cs
- DetailsViewActionList.cs
- IIS7UserPrincipal.cs
- CounterCreationDataConverter.cs
- TableRowCollection.cs
- RemoteWebConfigurationHostStream.cs
- CellTreeNodeVisitors.cs
- DateTimeSerializationSection.cs
- EditorZoneBase.cs
- RegexStringValidator.cs
- ActiveXContainer.cs
- SpeechAudioFormatInfo.cs
- Merger.cs
- CacheHelper.cs
- DefinitionUpdate.cs
- MessageQueuePermissionAttribute.cs
- PopOutPanel.cs
- CollectionViewGroupRoot.cs
- ConfigXmlAttribute.cs
- EncodingDataItem.cs
- Brush.cs
- Frame.cs
- RijndaelManagedTransform.cs
- DataGridViewCellValidatingEventArgs.cs
- BufferBuilder.cs
- HttpRawResponse.cs
- WebPartEditorCancelVerb.cs
- HttpListenerException.cs
- SqlParameterCollection.cs
- DelegateBodyWriter.cs
- ListSurrogate.cs
- XmlValidatingReader.cs
- HttpConfigurationSystem.cs
- VisualCollection.cs
- TextEvent.cs
- ChildDocumentBlock.cs
- printdlgexmarshaler.cs
- CalendarButtonAutomationPeer.cs
- WebServiceErrorEvent.cs
- OdbcReferenceCollection.cs
- PersianCalendar.cs
- ContainerFilterService.cs
- DataPagerCommandEventArgs.cs
- WebExceptionStatus.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlDownloadManager.cs
- GeneralTransform2DTo3DTo2D.cs
- CodeMethodInvokeExpression.cs
- DesignObjectWrapper.cs
- Property.cs
- PageThemeCodeDomTreeGenerator.cs
- XmlTypeMapping.cs
- RadioButtonPopupAdapter.cs
- OciEnlistContext.cs
- NonSerializedAttribute.cs
- DataFieldEditor.cs
- MetadataSection.cs
- AutomationTextAttribute.cs
- SqlTransaction.cs
- DataPointer.cs
- SqlTriggerContext.cs
- TraceLog.cs
- OpenFileDialog.cs
- XappLauncher.cs
- PeerDefaultCustomResolverClient.cs
- ASCIIEncoding.cs