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
- recordstatescratchpad.cs
- SystemIPInterfaceStatistics.cs
- ContentControl.cs
- BeginEvent.cs
- CodeAttachEventStatement.cs
- ObjectCloneHelper.cs
- ToolStripSeparatorRenderEventArgs.cs
- SourceInterpreter.cs
- TextTreeTextNode.cs
- TextBoxAutoCompleteSourceConverter.cs
- GeometryModel3D.cs
- InterleavedZipPartStream.cs
- MediaSystem.cs
- SocketAddress.cs
- CodeExpressionCollection.cs
- PrintPreviewControl.cs
- SrgsDocumentParser.cs
- ComboBox.cs
- MessageQueueCriteria.cs
- RuleSettings.cs
- xmlfixedPageInfo.cs
- CodeDirectiveCollection.cs
- MemberAccessException.cs
- DataGrid.cs
- HashSetDebugView.cs
- FtpWebRequest.cs
- DoWorkEventArgs.cs
- RadioButtonList.cs
- TagPrefixAttribute.cs
- AccessDataSourceView.cs
- StreamInfo.cs
- InheritanceContextChangedEventManager.cs
- CommandConverter.cs
- ImportedNamespaceContextItem.cs
- ellipse.cs
- ExtensionSimplifierMarkupObject.cs
- SQLDecimal.cs
- BaseDataList.cs
- EasingQuaternionKeyFrame.cs
- _UncName.cs
- XmlnsDefinitionAttribute.cs
- WebResourceAttribute.cs
- ConnectorSelectionGlyph.cs
- Light.cs
- PipelineDeploymentState.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- CultureInfoConverter.cs
- DetailsViewRow.cs
- wmiprovider.cs
- LayoutSettings.cs
- WebControlToolBoxItem.cs
- Stroke.cs
- ObjectNavigationPropertyMapping.cs
- WsatRegistrationHeader.cs
- MemberMemberBinding.cs
- MenuStrip.cs
- AnnotationHighlightLayer.cs
- HtmlControlPersistable.cs
- DoubleAnimationUsingKeyFrames.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- HtmlInputHidden.cs
- AttachmentService.cs
- ProjectionRewriter.cs
- PointCollectionValueSerializer.cs
- FormView.cs
- MexTcpBindingElement.cs
- DefaultValueTypeConverter.cs
- ScriptModule.cs
- PerformanceCounterCategory.cs
- ArgumentValue.cs
- MsmqVerifier.cs
- EntityViewContainer.cs
- ObjectSecurity.cs
- _LocalDataStoreMgr.cs
- TimerElapsedEvenArgs.cs
- InteropBitmapSource.cs
- CallbackTimeoutsBehavior.cs
- Configuration.cs
- DrawingServices.cs
- KeyValueConfigurationElement.cs
- StatusBar.cs
- BorderGapMaskConverter.cs
- TreeNodeBinding.cs
- AdornerLayer.cs
- Registration.cs
- DataControlCommands.cs
- DataServiceQuery.cs
- AutomationPatternInfo.cs
- SqlConnection.cs
- RC2CryptoServiceProvider.cs
- BrowserDefinition.cs
- SapiGrammar.cs
- ImageMap.cs
- ExpanderAutomationPeer.cs
- Decoder.cs
- SpellerInterop.cs
- TranslateTransform.cs
- HelpKeywordAttribute.cs
- ToolStripButton.cs
- Helper.cs