Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / SMSvcHost / System / ServiceModel / Activation / NetTcpSectionData.cs / 1 / NetTcpSectionData.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System.Collections.Generic; using System.Security.Principal; using System.Configuration; using System.Diagnostics; using System.ServiceModel.Diagnostics; using System.ServiceModel.Activation.Configuration; class NetTcpSectionData { int listenBacklog; int maxPendingConnections; int maxPendingAccepts; TimeSpan receiveTimeout; bool teredoEnabled; ListallowAccounts; public NetTcpSectionData() { NetTcpSection section = (NetTcpSection)ConfigurationManager.GetSection(ConfigurationStrings.NetTcpSectionPath); if (section == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException()); } this.listenBacklog = section.ListenBacklog; this.maxPendingConnections = section.MaxPendingConnections; this.maxPendingAccepts = section.MaxPendingAccepts; this.receiveTimeout = section.ReceiveTimeout; this.teredoEnabled = section.TeredoEnabled; this.allowAccounts = new List (); foreach (SecurityIdentifierElement element in section.AllowAccounts) { this.allowAccounts.Add(element.SecurityIdentifier); } } public int ListenBacklog { get { return this.listenBacklog; } } public int MaxPendingConnections { get { return this.maxPendingConnections; } } public int MaxPendingAccepts { get { return this.maxPendingAccepts; } } public TimeSpan ReceiveTimeout { get { return this.receiveTimeout; } } public bool TeredoEnabled { get { return this.teredoEnabled; } } public List AllowAccounts { get { return this.allowAccounts; } } } } // 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
- AsyncSerializedWorker.cs
- WebBaseEventKeyComparer.cs
- EntityContainerRelationshipSetEnd.cs
- Double.cs
- DataObjectEventArgs.cs
- MD5.cs
- SystemIPGlobalStatistics.cs
- NotFiniteNumberException.cs
- KeyedHashAlgorithm.cs
- XmlFormatExtensionPrefixAttribute.cs
- AssemblyInfo.cs
- MappingModelBuildProvider.cs
- XmlStringTable.cs
- DelayedRegex.cs
- TypeExtensionConverter.cs
- DataSourceControl.cs
- handlecollector.cs
- GenericTransactionFlowAttribute.cs
- AddValidationError.cs
- SplineQuaternionKeyFrame.cs
- ReadOnlyAttribute.cs
- UInt16Converter.cs
- DetailsViewRow.cs
- XmlHierarchicalDataSourceView.cs
- SoapConverter.cs
- ContractHandle.cs
- DefaultPropertiesToSend.cs
- DataDocumentXPathNavigator.cs
- Constants.cs
- WebServiceErrorEvent.cs
- HwndMouseInputProvider.cs
- Label.cs
- ModelServiceImpl.cs
- TransactionTraceIdentifier.cs
- EventDescriptor.cs
- HttpResponseInternalBase.cs
- AppDomainManager.cs
- ValidatorAttribute.cs
- SystemIcmpV6Statistics.cs
- GeometryDrawing.cs
- RightsManagementEncryptedStream.cs
- TreeViewEvent.cs
- HelpKeywordAttribute.cs
- LambdaCompiler.Binary.cs
- OverflowException.cs
- COM2ICategorizePropertiesHandler.cs
- PowerModeChangedEventArgs.cs
- Symbol.cs
- CheckBoxFlatAdapter.cs
- TimerExtension.cs
- GridViewColumn.cs
- UncommonField.cs
- MailWebEventProvider.cs
- ErrorProvider.cs
- SelectingProviderEventArgs.cs
- StoryFragments.cs
- Figure.cs
- GrammarBuilderPhrase.cs
- ControlPropertyNameConverter.cs
- IMembershipProvider.cs
- WebPartRestoreVerb.cs
- Parameter.cs
- GeneralTransform2DTo3DTo2D.cs
- ScrollProperties.cs
- RoutingSection.cs
- PreDigestedSignedInfo.cs
- SelectionProcessor.cs
- SamlAssertion.cs
- PowerModeChangedEventArgs.cs
- MatrixAnimationBase.cs
- FixedSOMPageConstructor.cs
- ViewGenerator.cs
- WebPartEventArgs.cs
- SupportingTokenDuplexChannel.cs
- CharEntityEncoderFallback.cs
- Binding.cs
- ValueType.cs
- PointValueSerializer.cs
- DataServiceRequestArgs.cs
- PolygonHotSpot.cs
- Binding.cs
- XmlSchemaDocumentation.cs
- ToolBarButtonDesigner.cs
- HuffCodec.cs
- FileDialog_Vista_Interop.cs
- InvalidCardException.cs
- Stack.cs
- TemplateApplicationHelper.cs
- DrawListViewSubItemEventArgs.cs
- RawStylusInputCustomDataList.cs
- TypefaceCollection.cs
- MethodExpr.cs
- InputLanguageCollection.cs
- Object.cs
- MultiTouchSystemGestureLogic.cs
- ScriptResourceInfo.cs
- MenuBindingsEditorForm.cs
- InputProviderSite.cs
- MsdtcClusterUtils.cs
- EmptyStringExpandableObjectConverter.cs