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
- GridItemPatternIdentifiers.cs
- TemplateControlParser.cs
- HexParser.cs
- BitArray.cs
- BitmapEffectGroup.cs
- AddDataControlFieldDialog.cs
- _BaseOverlappedAsyncResult.cs
- ElementUtil.cs
- FilteredDataSetHelper.cs
- DataStorage.cs
- ErrorFormatterPage.cs
- SharedDp.cs
- ContentType.cs
- log.cs
- DeclarativeCatalogPart.cs
- ListViewDataItem.cs
- DataGridColumnEventArgs.cs
- RecognizerBase.cs
- XmlText.cs
- MetadataItemEmitter.cs
- MenuItemStyleCollection.cs
- TypeNameConverter.cs
- TransportBindingElement.cs
- BindingContext.cs
- FixedTextContainer.cs
- PageBuildProvider.cs
- ScriptControl.cs
- _AutoWebProxyScriptHelper.cs
- StringAnimationBase.cs
- RightsDocument.cs
- IndexerNameAttribute.cs
- StrongNameMembershipCondition.cs
- FormViewInsertedEventArgs.cs
- XmlNodeList.cs
- ZipIOLocalFileDataDescriptor.cs
- ExpressionPrefixAttribute.cs
- XpsSerializationManagerAsync.cs
- ControlBindingsCollection.cs
- SqlClientWrapperSmiStreamChars.cs
- ItemAutomationPeer.cs
- Expr.cs
- UIElementParaClient.cs
- XPathNavigatorException.cs
- XmlWrappingReader.cs
- sortedlist.cs
- GlyphShapingProperties.cs
- CompilerWrapper.cs
- SqlDataSourceCommandEventArgs.cs
- DataGridView.cs
- SystemFonts.cs
- ConstraintCollection.cs
- RadioButton.cs
- GeometryHitTestParameters.cs
- DataGridViewButtonCell.cs
- UIElement3DAutomationPeer.cs
- TagElement.cs
- DocumentSchemaValidator.cs
- ParameterToken.cs
- PageAdapter.cs
- DataGridViewSelectedColumnCollection.cs
- ElementUtil.cs
- RoutedEventHandlerInfo.cs
- EraserBehavior.cs
- LocalizableAttribute.cs
- ConditionalAttribute.cs
- MouseEventArgs.cs
- Win32Native.cs
- IconBitmapDecoder.cs
- MultiDataTrigger.cs
- DeploymentSection.cs
- WebAdminConfigurationHelper.cs
- TraceRecord.cs
- EnumDataContract.cs
- SafeNativeMethods.cs
- RawStylusInput.cs
- EventListener.cs
- NativeMethodsOther.cs
- BamlTreeUpdater.cs
- ExpandCollapsePattern.cs
- QueryPrefixOp.cs
- IgnorePropertiesAttribute.cs
- QilIterator.cs
- CompilationRelaxations.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- log.cs
- ChangeTracker.cs
- ResizeGrip.cs
- __FastResourceComparer.cs
- PropertyGeneratedEventArgs.cs
- ConvertersCollection.cs
- ReverseComparer.cs
- Types.cs
- JsonByteArrayDataContract.cs
- Light.cs
- PolyQuadraticBezierSegment.cs
- ISessionStateStore.cs
- SyndicationFeedFormatter.cs
- PropertyChangingEventArgs.cs
- InfiniteTimeSpanConverter.cs
- UnitControl.cs