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
- ImageConverter.cs
- FusionWrap.cs
- WebServiceReceive.cs
- webclient.cs
- _SingleItemRequestCache.cs
- ToolStripScrollButton.cs
- XmlCollation.cs
- ExecutionScope.cs
- BitmapEffectDrawing.cs
- SpellerError.cs
- EventWaitHandle.cs
- PrtTicket_Public.cs
- CustomPopupPlacement.cs
- UidPropertyAttribute.cs
- thaishape.cs
- SamlAuthorizationDecisionClaimResource.cs
- RemoteDebugger.cs
- UniqueEventHelper.cs
- PartitionedStream.cs
- NullableConverter.cs
- NavigationWindowAutomationPeer.cs
- XmlCustomFormatter.cs
- QueryReaderSettings.cs
- DetailsViewModeEventArgs.cs
- XdrBuilder.cs
- CngKeyBlobFormat.cs
- WorkflowView.cs
- KeysConverter.cs
- login.cs
- WindowsPrincipal.cs
- WsrmFault.cs
- GAC.cs
- ValidationHelper.cs
- ArcSegment.cs
- Model3D.cs
- SurrogateSelector.cs
- DataGridTableCollection.cs
- SoapObjectWriter.cs
- EndEvent.cs
- SwitchAttribute.cs
- Visual3D.cs
- Operator.cs
- ResetableIterator.cs
- CqlIdentifiers.cs
- XmlToDatasetMap.cs
- SchemaImporterExtensionElementCollection.cs
- XmlnsPrefixAttribute.cs
- ELinqQueryState.cs
- Splitter.cs
- VisualStyleInformation.cs
- TextParagraphView.cs
- XmlSerializerOperationGenerator.cs
- AudienceUriMode.cs
- MouseDevice.cs
- AudioBase.cs
- StructuredType.cs
- OpenTypeLayout.cs
- SerializationInfoEnumerator.cs
- CustomAttributeSerializer.cs
- LineServicesRun.cs
- InstanceNotFoundException.cs
- MetadataSource.cs
- CaseExpr.cs
- TimeIntervalCollection.cs
- PathFigureCollectionConverter.cs
- StorageTypeMapping.cs
- AxHost.cs
- RoutedEventValueSerializer.cs
- InputLanguageManager.cs
- SQLDateTimeStorage.cs
- EntityStoreSchemaGenerator.cs
- WebBrowserHelper.cs
- ExpressionPrefixAttribute.cs
- XpsViewerException.cs
- ZipIOLocalFileHeader.cs
- TagPrefixCollection.cs
- DataGridViewComboBoxColumn.cs
- Logging.cs
- Assembly.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- ValueUtilsSmi.cs
- ResourceProviderFactory.cs
- QueryExpression.cs
- SafeThreadHandle.cs
- DetailsViewRow.cs
- ProxyAttribute.cs
- MessageBodyMemberAttribute.cs
- CollectionViewSource.cs
- Binding.cs
- RelatedView.cs
- XmlNodeChangedEventArgs.cs
- CAGDesigner.cs
- SslStream.cs
- LineBreak.cs
- HostProtectionPermission.cs
- RuleEngine.cs
- LocalizeDesigner.cs
- InvalidateEvent.cs
- COAUTHINFO.cs