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
- SortedList.cs
- CurrentTimeZone.cs
- ProfileEventArgs.cs
- SqlParameterizer.cs
- StringAttributeCollection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Selection.cs
- RolePrincipal.cs
- WorkflowControlEndpoint.cs
- NativeMethods.cs
- TextViewBase.cs
- ServiceHttpHandlerFactory.cs
- TemplateBindingExpressionConverter.cs
- XmlDataProvider.cs
- WebPartConnection.cs
- ConfigurationStrings.cs
- Light.cs
- ObjectItemNoOpAssemblyLoader.cs
- TableParaClient.cs
- XsltCompileContext.cs
- ContextActivityUtils.cs
- Registry.cs
- ProtectedProviderSettings.cs
- _ConnectOverlappedAsyncResult.cs
- ConfigXmlCDataSection.cs
- UxThemeWrapper.cs
- CacheAxisQuery.cs
- Trustee.cs
- ResourcesGenerator.cs
- BooleanFunctions.cs
- DataGridTextBoxColumn.cs
- Expr.cs
- XmlSchemas.cs
- SafeHandle.cs
- ManagementQuery.cs
- AnimatedTypeHelpers.cs
- ReaderWriterLockWrapper.cs
- TabPageDesigner.cs
- ContentOperations.cs
- Rotation3D.cs
- Invariant.cs
- ClientTargetCollection.cs
- AssemblyCache.cs
- QueueTransferProtocol.cs
- DragCompletedEventArgs.cs
- ResolveCriteriaCD1.cs
- remotingproxy.cs
- EndpointIdentity.cs
- TypeDescriptionProvider.cs
- DATA_BLOB.cs
- KnownColorTable.cs
- CAGDesigner.cs
- DynamicActivityTypeDescriptor.cs
- ProxyHelper.cs
- SymLanguageVendor.cs
- StorageEntityTypeMapping.cs
- InvokeWebServiceDesigner.cs
- UserControl.cs
- HttpEncoderUtility.cs
- DragEventArgs.cs
- Triangle.cs
- ValidationErrorEventArgs.cs
- ComponentChangingEvent.cs
- DesignerVerbCollection.cs
- RectAnimation.cs
- ApplyImportsAction.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- UserMapPath.cs
- SnapLine.cs
- SecureStringHasher.cs
- SqlCacheDependencyDatabase.cs
- TypeDependencyAttribute.cs
- FormViewDeletedEventArgs.cs
- QueryRewriter.cs
- XmlSchemaComplexContentExtension.cs
- FamilyMapCollection.cs
- FileFormatException.cs
- NavigationService.cs
- SqlExpressionNullability.cs
- OleDbEnumerator.cs
- GridSplitter.cs
- FieldNameLookup.cs
- CodeDomDesignerLoader.cs
- EnvelopedPkcs7.cs
- LogRestartAreaEnumerator.cs
- ProgressBarAutomationPeer.cs
- CredentialCache.cs
- _AutoWebProxyScriptHelper.cs
- Span.cs
- TableItemStyle.cs
- KnownBoxes.cs
- DataExpression.cs
- EventRecordWrittenEventArgs.cs
- EdmItemError.cs
- ParameterBuilder.cs
- TextPatternIdentifiers.cs
- LinqDataSourceHelper.cs
- MenuScrollingVisibilityConverter.cs
- XmlTextReaderImpl.cs
- Repeater.cs