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
- TextParagraphCache.cs
- UnsafeNativeMethods.cs
- ColorDialog.cs
- SelectedCellsCollection.cs
- XPathParser.cs
- WebEventCodes.cs
- WebPartRestoreVerb.cs
- Collection.cs
- HttpCacheVary.cs
- FileLoadException.cs
- PersonalizationAdministration.cs
- Rotation3D.cs
- EntityContainerEmitter.cs
- WindowsIPAddress.cs
- SignatureDescription.cs
- ApplicationException.cs
- OpacityConverter.cs
- ModelUIElement3D.cs
- XmlWriterSettings.cs
- XPathItem.cs
- ProcessHostServerConfig.cs
- SiteMapNode.cs
- StructuredType.cs
- EntryIndex.cs
- XMLSchema.cs
- TextEncodedRawTextWriter.cs
- BookmarkList.cs
- TemplateKey.cs
- OdbcCommand.cs
- SqlColumnizer.cs
- AuthenticationModulesSection.cs
- CompilationUtil.cs
- CheckBox.cs
- UnauthorizedWebPart.cs
- safex509handles.cs
- LayoutEvent.cs
- CollectionViewGroup.cs
- DrawingServices.cs
- AncestorChangedEventArgs.cs
- ResourceContainer.cs
- MarkupCompilePass1.cs
- autovalidator.cs
- fixedPageContentExtractor.cs
- TraceProvider.cs
- UIElement3D.cs
- ToolStripPanelCell.cs
- SqlUDTStorage.cs
- PersianCalendar.cs
- ResourceExpressionBuilder.cs
- ProvidePropertyAttribute.cs
- OrderedDictionaryStateHelper.cs
- PersistenceTypeAttribute.cs
- VerticalAlignConverter.cs
- LocalizedNameDescriptionPair.cs
- SQLGuid.cs
- Material.cs
- ListMarkerSourceInfo.cs
- UrlAuthFailedErrorFormatter.cs
- EpmCustomContentDeSerializer.cs
- PinProtectionHelper.cs
- ZeroOpNode.cs
- KeyInfo.cs
- AttachmentService.cs
- MarshalByValueComponent.cs
- CompressionTransform.cs
- SizeChangedInfo.cs
- TraceContextRecord.cs
- DiffuseMaterial.cs
- Primitive.cs
- SingleTagSectionHandler.cs
- XPathNodePointer.cs
- X509CertificateValidator.cs
- FrameDimension.cs
- InheritanceAttribute.cs
- webclient.cs
- SpAudioStreamWrapper.cs
- DesignerActionVerbList.cs
- ParenthesizePropertyNameAttribute.cs
- SlipBehavior.cs
- Transform3DCollection.cs
- GridViewUpdateEventArgs.cs
- IDReferencePropertyAttribute.cs
- Operator.cs
- SourceSwitch.cs
- DataGridSortCommandEventArgs.cs
- DataGridViewButtonColumn.cs
- CompleteWizardStep.cs
- BaseCAMarshaler.cs
- XLinq.cs
- StaticFileHandler.cs
- EdmToObjectNamespaceMap.cs
- ConditionChanges.cs
- Style.cs
- DispatcherSynchronizationContext.cs
- DefaultExpression.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BamlStream.cs
- Function.cs
- Oci.cs
- ProtocolsConfiguration.cs