Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Activation / Configuration / NetTcpSection.cs / 1 / NetTcpSection.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activation.Configuration { using System; using System.Configuration; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Net.Sockets; using System.Security.Principal; using System.ServiceModel.Channels; public sealed partial class NetTcpSection : ConfigurationSection { public NetTcpSection() : base() { } [ConfigurationProperty(ConfigurationStrings.AllowAccounts)] public SecurityIdentifierElementCollection AllowAccounts { get { return (SecurityIdentifierElementCollection)base[ConfigurationStrings.AllowAccounts]; } } static internal NetTcpSection GetSection() { NetTcpSection retval = (NetTcpSection)ConfigurationManager.GetSection(ConfigurationStrings.NetTcpSectionPath); if (retval == null) { retval = new NetTcpSection(); } return retval; } protected override void InitializeDefault() { this.AllowAccounts.SetDefaultIdentifiers(); } [ConfigurationProperty(ConfigurationStrings.ListenBacklog, DefaultValue = ListenerConstants.DefaultListenBackLog)] [IntegerValidator(MinValue = 1)] public int ListenBacklog { get { return (int)base[ConfigurationStrings.ListenBacklog]; } set { base[ConfigurationStrings.ListenBacklog] = value; } } [ConfigurationProperty(ConfigurationStrings.MaxPendingConnections, DefaultValue = ListenerConstants.DefaultMaxPendingConnections)] [IntegerValidator(MinValue = 1)] public int MaxPendingConnections { get { return (int)base[ConfigurationStrings.MaxPendingConnections]; } set { base[ConfigurationStrings.MaxPendingConnections] = value; } } [ConfigurationProperty(ConfigurationStrings.MaxPendingAccepts, DefaultValue = ListenerConstants.DefaultMaxPendingAccepts)] [IntegerValidator(MinValue = 1)] public int MaxPendingAccepts { get { return (int)base[ConfigurationStrings.MaxPendingAccepts]; } set { base[ConfigurationStrings.MaxPendingAccepts] = value; } } [ConfigurationProperty(ConfigurationStrings.ReceiveTimeout, DefaultValue = ListenerConstants.DefaultReceiveTimeoutString)] [System.ComponentModel.TypeConverter(typeof(TimeSpanOrInfiniteConverter))] [System.ServiceModel.Configuration.ServiceModelTimeSpanValidator(MinValueString = ConfigurationStrings.TimeSpanZero)] public TimeSpan ReceiveTimeout { get { return (TimeSpan)base[ConfigurationStrings.ReceiveTimeout]; } set { base[ConfigurationStrings.ReceiveTimeout] = value; } } [ConfigurationProperty(ConfigurationStrings.TeredoEnabled, DefaultValue = ListenerConstants.DefaultTeredoEnabled)] public bool TeredoEnabled { get { return (bool)base[ConfigurationStrings.TeredoEnabled]; } set { base[ConfigurationStrings.TeredoEnabled] = value; } } } } // 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
- WebDisplayNameAttribute.cs
- BaseTemplateParser.cs
- BmpBitmapEncoder.cs
- HtmlContainerControl.cs
- XmlSchemaAppInfo.cs
- ListenerSingletonConnectionReader.cs
- CombinedGeometry.cs
- DataGridViewRowsAddedEventArgs.cs
- InputLanguageProfileNotifySink.cs
- _ConnectOverlappedAsyncResult.cs
- ProxyElement.cs
- MetafileHeader.cs
- ThicknessConverter.cs
- PerfCounterSection.cs
- AssemblySettingAttributes.cs
- DataSourceProvider.cs
- PackWebResponse.cs
- DataGridViewCellStyle.cs
- panel.cs
- BitmapSourceSafeMILHandle.cs
- MailAddressCollection.cs
- UnsafeNativeMethods.cs
- PageFunction.cs
- MarshalByValueComponent.cs
- SequentialUshortCollection.cs
- UnsafeNativeMethods.cs
- NativeMethods.cs
- propertyentry.cs
- ListSurrogate.cs
- FreezableCollection.cs
- InputLanguage.cs
- EventSource.cs
- CompositeFontFamily.cs
- Command.cs
- BrowserCapabilitiesFactory.cs
- SessionPageStateSection.cs
- StringDictionary.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- RectAnimationClockResource.cs
- MenuScrollingVisibilityConverter.cs
- XmlDataDocument.cs
- XmlSchemaCollection.cs
- ProtocolsConfiguration.cs
- OrderedHashRepartitionStream.cs
- IRCollection.cs
- ResXResourceWriter.cs
- DbXmlEnabledProviderManifest.cs
- PrePrepareMethodAttribute.cs
- AbsoluteQuery.cs
- DeferredBinaryDeserializerExtension.cs
- NetworkInformationPermission.cs
- DataReceivedEventArgs.cs
- TrimSurroundingWhitespaceAttribute.cs
- ImageBrush.cs
- SpecialNameAttribute.cs
- FrameworkContextData.cs
- RowParagraph.cs
- SqlCommandBuilder.cs
- UserCancellationException.cs
- EventManager.cs
- DiscardableAttribute.cs
- ExtensionQuery.cs
- DefaultSerializationProviderAttribute.cs
- SqlComparer.cs
- PersonalizationDictionary.cs
- EdmEntityTypeAttribute.cs
- IdentifierCreationService.cs
- TreeBuilder.cs
- HealthMonitoringSectionHelper.cs
- FacetDescriptionElement.cs
- GridViewCommandEventArgs.cs
- ListViewInsertionMark.cs
- RemoteWebConfigurationHostStream.cs
- SubordinateTransaction.cs
- FlagsAttribute.cs
- ColorIndependentAnimationStorage.cs
- XmlSchemaSimpleContentExtension.cs
- Behavior.cs
- QuestionEventArgs.cs
- basevalidator.cs
- WindowsComboBox.cs
- CancellationToken.cs
- DataTableTypeConverter.cs
- XmlSchemaObjectCollection.cs
- WindowsImpersonationContext.cs
- Operator.cs
- CreateDataSourceDialog.cs
- SafeWaitHandle.cs
- NamespaceCollection.cs
- TimeZone.cs
- ExpressionLink.cs
- BuilderPropertyEntry.cs
- PageAsyncTask.cs
- CodePrimitiveExpression.cs
- DispatcherObject.cs
- ZipPackage.cs
- DirtyTextRange.cs
- ProcessModule.cs
- EntityDataSourceStatementEditorForm.cs
- CodeDefaultValueExpression.cs