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
- MatrixAnimationBase.cs
- StateMachineHelpers.cs
- WeakRefEnumerator.cs
- TableRow.cs
- HistoryEventArgs.cs
- ProxyWebPart.cs
- SoapCodeExporter.cs
- RangeValidator.cs
- SkewTransform.cs
- Animatable.cs
- _AutoWebProxyScriptHelper.cs
- TextElementAutomationPeer.cs
- SchemaAttDef.cs
- ApplicationServiceHelper.cs
- DataGridViewColumnCollectionDialog.cs
- URL.cs
- RTLAwareMessageBox.cs
- C14NUtil.cs
- BitmapSizeOptions.cs
- Style.cs
- WebPartTransformerCollection.cs
- ContextInformation.cs
- FamilyTypeface.cs
- InheritanceUI.cs
- RawStylusActions.cs
- ObjectViewQueryResultData.cs
- AsynchronousChannel.cs
- MemoryFailPoint.cs
- EastAsianLunisolarCalendar.cs
- MarkupCompilePass2.cs
- FixedTextContainer.cs
- ConnectionManagementSection.cs
- BevelBitmapEffect.cs
- basevalidator.cs
- CallbackDebugElement.cs
- ListViewTableRow.cs
- StylusPointProperty.cs
- DrawingBrush.cs
- BamlRecordReader.cs
- ClientTargetSection.cs
- ComponentRenameEvent.cs
- NativeWindow.cs
- StringConverter.cs
- MenuItem.cs
- SoapSchemaImporter.cs
- OrderToken.cs
- LinkArea.cs
- SafeFreeMibTable.cs
- PropertyInformationCollection.cs
- InvalidOleVariantTypeException.cs
- PropertyMetadata.cs
- EventMap.cs
- DataRowView.cs
- WindowPattern.cs
- EdmPropertyAttribute.cs
- ListViewItem.cs
- CodeAttributeArgument.cs
- GregorianCalendarHelper.cs
- GridViewCommandEventArgs.cs
- CellCreator.cs
- MemberExpression.cs
- InvalidProgramException.cs
- ListViewDataItem.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlSchemaSimpleContent.cs
- EventSinkHelperWriter.cs
- XmlAttribute.cs
- CompressionTransform.cs
- COM2PropertyBuilderUITypeEditor.cs
- UpdatePanelTriggerCollection.cs
- NullExtension.cs
- EllipticalNodeOperations.cs
- Repeater.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- XmlArrayAttribute.cs
- TypefaceMap.cs
- ContravarianceAdapter.cs
- XmlSchemaNotation.cs
- SqlRetyper.cs
- Root.cs
- Point4D.cs
- ContainerSelectorBehavior.cs
- RegisteredHiddenField.cs
- DataGridHelper.cs
- ReadOnlyDataSource.cs
- UnknownBitmapEncoder.cs
- WindowsRegion.cs
- PrintControllerWithStatusDialog.cs
- CodeLinePragma.cs
- XpsSerializationManagerAsync.cs
- CodeCompiler.cs
- FormatConvertedBitmap.cs
- FormViewDeletedEventArgs.cs
- Pointer.cs
- ToolStripItemEventArgs.cs
- documentsequencetextpointer.cs
- LoginName.cs
- DictionaryCustomTypeDescriptor.cs
- LinqDataSourceEditData.cs
- SharedPersonalizationStateInfo.cs