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
- WriteTimeStream.cs
- DecoratedNameAttribute.cs
- DbConnectionFactory.cs
- XamlReader.cs
- HttpRequestWrapper.cs
- MemberDomainMap.cs
- XmlNullResolver.cs
- CompatibleComparer.cs
- ObjectParameterCollection.cs
- HandlerMappingMemo.cs
- PrincipalPermission.cs
- FreezableCollection.cs
- WsdlEndpointConversionContext.cs
- VarRefManager.cs
- BasicExpressionVisitor.cs
- RuntimeHelpers.cs
- SqlError.cs
- SourceLocationProvider.cs
- Buffer.cs
- PathParser.cs
- ReaderContextStackData.cs
- GlyphRunDrawing.cs
- UnsafeNativeMethods.cs
- Win32SafeHandles.cs
- TripleDES.cs
- Floater.cs
- MultipleViewProviderWrapper.cs
- MetaType.cs
- IPEndPointCollection.cs
- EntityClassGenerator.cs
- WindowsIdentity.cs
- DisplayInformation.cs
- XmlRawWriter.cs
- TextInfo.cs
- PageTheme.cs
- WSSecureConversation.cs
- ContainsRowNumberChecker.cs
- ValueProviderWrapper.cs
- ExpressionPrefixAttribute.cs
- FormatException.cs
- RequestFactory.cs
- EditingMode.cs
- FileRegion.cs
- HttpModuleCollection.cs
- StringToken.cs
- BitmapCacheBrush.cs
- MouseGestureValueSerializer.cs
- WebServiceTypeData.cs
- EventPropertyMap.cs
- SrgsItemList.cs
- KeyPullup.cs
- CompositeFontParser.cs
- DataGridViewElement.cs
- DocumentSchemaValidator.cs
- MethodCallTranslator.cs
- NamedPipeHostedTransportConfiguration.cs
- NameSpaceExtractor.cs
- Proxy.cs
- DbModificationCommandTree.cs
- DataObjectPastingEventArgs.cs
- KeySpline.cs
- OleDbErrorCollection.cs
- DBBindings.cs
- SiteMap.cs
- StagingAreaInputItem.cs
- SettingsContext.cs
- MissingMemberException.cs
- ObjectAssociationEndMapping.cs
- DesignColumnCollection.cs
- AsyncResult.cs
- ProviderConnectionPoint.cs
- XmlComment.cs
- MetadataProperty.cs
- Slider.cs
- Transform.cs
- UriTemplateDispatchFormatter.cs
- CodeTypeReferenceExpression.cs
- BamlRecords.cs
- PropertyValue.cs
- DiscoveryUtility.cs
- ScriptingJsonSerializationSection.cs
- AttributeExtensions.cs
- UnmanagedHandle.cs
- TextBlock.cs
- ParameterCollection.cs
- XmlConverter.cs
- DetailsViewPagerRow.cs
- DropTarget.cs
- DelegatedStream.cs
- Menu.cs
- IntegerCollectionEditor.cs
- XmlDeclaration.cs
- GridViewSortEventArgs.cs
- PopupControlService.cs
- HtmlInputFile.cs
- ProfileSection.cs
- LiteralText.cs
- DataRelationCollection.cs
- MutableAssemblyCacheEntry.cs
- TextBoxRenderer.cs