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
- XMLSyntaxException.cs
- RequiredAttributeAttribute.cs
- BindValidationContext.cs
- ReaderWriterLockWrapper.cs
- BufferBuilder.cs
- messageonlyhwndwrapper.cs
- HijriCalendar.cs
- RealProxy.cs
- MetricEntry.cs
- Color.cs
- GcHandle.cs
- Function.cs
- ObjectStateEntryDbDataRecord.cs
- messageonlyhwndwrapper.cs
- BamlBinaryReader.cs
- ThemeDirectoryCompiler.cs
- StylusDownEventArgs.cs
- WinOEToolBoxItem.cs
- KeysConverter.cs
- DesignerSerializerAttribute.cs
- IItemContainerGenerator.cs
- NameNode.cs
- StringArrayConverter.cs
- WinEventHandler.cs
- HttpApplication.cs
- SmiContext.cs
- ValidatorCollection.cs
- UmAlQuraCalendar.cs
- ProjectionPruner.cs
- DateTime.cs
- CellQuery.cs
- DataGrid.cs
- StorageSetMapping.cs
- PrincipalPermission.cs
- BitmapCodecInfoInternal.cs
- EntityTemplateUserControl.cs
- PresentationAppDomainManager.cs
- XmlChoiceIdentifierAttribute.cs
- SelectionProviderWrapper.cs
- EllipseGeometry.cs
- FlowNode.cs
- FormsAuthentication.cs
- XmlLoader.cs
- HelloMessageApril2005.cs
- StringUtil.cs
- ComboBox.cs
- XmlMtomWriter.cs
- StdRegProviderWrapper.cs
- DynamicControl.cs
- ConfigurationSettings.cs
- ResetableIterator.cs
- FlowLayoutSettings.cs
- DropShadowBitmapEffect.cs
- Mapping.cs
- FileRecordSequenceHelper.cs
- ReadWriteSpinLock.cs
- ApplicationServicesHostFactory.cs
- HWStack.cs
- ColorConvertedBitmapExtension.cs
- ValidatorCompatibilityHelper.cs
- JapaneseLunisolarCalendar.cs
- SymbolEqualComparer.cs
- CharUnicodeInfo.cs
- AccessDataSourceWizardForm.cs
- BCryptSafeHandles.cs
- CatalogPartDesigner.cs
- XmlDataSourceView.cs
- MetadataItemSerializer.cs
- DbTransaction.cs
- RelationalExpressions.cs
- Pipe.cs
- DataGridTextBoxColumn.cs
- ImageAttributes.cs
- ProfileServiceManager.cs
- ConfigurationElement.cs
- SecurityUniqueId.cs
- PixelShader.cs
- PointAnimation.cs
- DesignConnectionCollection.cs
- UserPersonalizationStateInfo.cs
- SqlUtils.cs
- RegexParser.cs
- TraceData.cs
- EmbeddedMailObjectsCollection.cs
- _UriTypeConverter.cs
- TypeSchema.cs
- UidManager.cs
- ExpressionUtilities.cs
- BitConverter.cs
- MenuItem.cs
- ComponentEditorForm.cs
- FormsAuthenticationUser.cs
- MenuBase.cs
- NoneExcludedImageIndexConverter.cs
- Nodes.cs
- ListItemCollection.cs
- FunctionParameter.cs
- XmlSchemaSimpleContentRestriction.cs
- TypeNameConverter.cs
- ValueChangedEventManager.cs