Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / SMSvcHost / System / ServiceModel / Activation / NetPipeSectionData.cs / 1 / NetPipeSectionData.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 NetPipeSectionData { int maxPendingConnections; int maxPendingAccepts; TimeSpan receiveTimeout; ListallowAccounts; public NetPipeSectionData() { NetPipeSection section = (NetPipeSection)ConfigurationManager.GetSection(ConfigurationStrings.NetPipeSectionPath); if (section == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException()); } this.maxPendingConnections = section.MaxPendingConnections; this.maxPendingAccepts = section.MaxPendingAccepts; this.receiveTimeout = section.ReceiveTimeout; this.allowAccounts = new List (); foreach (SecurityIdentifierElement element in section.AllowAccounts) { this.allowAccounts.Add(element.SecurityIdentifier); } } public int MaxPendingConnections { get { return this.maxPendingConnections; } } public int MaxPendingAccepts { get { return this.maxPendingAccepts; } } public TimeSpan ReceiveTimeout { get { return this.receiveTimeout; } } 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
- XmlAtomErrorReader.cs
- PocoPropertyAccessorStrategy.cs
- XPathParser.cs
- ScriptControlDescriptor.cs
- TrustExchangeException.cs
- ItemsPanelTemplate.cs
- MethodSignatureGenerator.cs
- ListCardsInFileRequest.cs
- MetadataPropertyAttribute.cs
- mediapermission.cs
- Positioning.cs
- BrowserCapabilitiesFactory35.cs
- InstalledFontCollection.cs
- XmlNodeReader.cs
- DataRowCollection.cs
- Enlistment.cs
- invalidudtexception.cs
- StringValidatorAttribute.cs
- EmptyEnumerator.cs
- DomNameTable.cs
- FormatterServices.cs
- InheritedPropertyChangedEventArgs.cs
- ObjectStateManagerMetadata.cs
- Point3DConverter.cs
- Win32Exception.cs
- StringBuilder.cs
- SolidColorBrush.cs
- SoapFault.cs
- SystemPens.cs
- DataKeyArray.cs
- ManagementEventWatcher.cs
- ConditionalAttribute.cs
- CollectionViewProxy.cs
- WhitespaceRuleLookup.cs
- ScrollViewerAutomationPeer.cs
- DodSequenceMerge.cs
- Visitors.cs
- NamespaceListProperty.cs
- UnmanagedMarshal.cs
- SchemaDeclBase.cs
- TdsParserSafeHandles.cs
- PrePrepareMethodAttribute.cs
- SiteMembershipCondition.cs
- CodeParameterDeclarationExpressionCollection.cs
- OleDbParameter.cs
- DataGridViewCellValueEventArgs.cs
- LayoutUtils.cs
- CompilerLocalReference.cs
- CodeBlockBuilder.cs
- SmtpNetworkElement.cs
- Task.cs
- formatstringdialog.cs
- securitycriticaldataClass.cs
- SqlDataSourceCommandParser.cs
- OdbcDataAdapter.cs
- LocatorBase.cs
- ClientRolePrincipal.cs
- CodeLinePragma.cs
- TableAutomationPeer.cs
- XmlComment.cs
- BasicExpandProvider.cs
- AppDomainManager.cs
- precedingsibling.cs
- SpotLight.cs
- ObjectConverter.cs
- SmtpReplyReader.cs
- ConversionHelper.cs
- _AcceptOverlappedAsyncResult.cs
- TypeForwardedFromAttribute.cs
- LeaseManager.cs
- OperationCanceledException.cs
- documentsequencetextpointer.cs
- EntityClassGenerator.cs
- ShadowGlyph.cs
- Pair.cs
- QilFunction.cs
- BaseServiceProvider.cs
- DirectoryInfo.cs
- WebServiceMethodData.cs
- StreamUpdate.cs
- SingleQueryOperator.cs
- configsystem.cs
- ListViewDesigner.cs
- XmlNamedNodeMap.cs
- ParameterRetriever.cs
- RowBinding.cs
- SecurityHelper.cs
- ToolStripSeparatorRenderEventArgs.cs
- ElapsedEventArgs.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- InternalMappingException.cs
- WindowsTokenRoleProvider.cs
- SerializationFieldInfo.cs
- ListViewItemMouseHoverEvent.cs
- FrameworkReadOnlyPropertyMetadata.cs
- HtmlControl.cs
- EdmItemError.cs
- SelectedDatesCollection.cs
- CurrencyManager.cs
- TextBoxRenderer.cs