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
- WindowsBrush.cs
- input.cs
- DocumentGridContextMenu.cs
- ObjectStateManager.cs
- embossbitmapeffect.cs
- OciHandle.cs
- SHA1.cs
- NetworkInterface.cs
- BindingBase.cs
- HtmlSelect.cs
- Journaling.cs
- StorageComplexPropertyMapping.cs
- GifBitmapDecoder.cs
- StreamWithDictionary.cs
- LineGeometry.cs
- EditorZone.cs
- _ListenerRequestStream.cs
- DesignerActionUIStateChangeEventArgs.cs
- ManipulationCompletedEventArgs.cs
- LocationReferenceValue.cs
- ValidationSummary.cs
- ClonableStack.cs
- GroupItemAutomationPeer.cs
- StandardCommandToolStripMenuItem.cs
- SizeKeyFrameCollection.cs
- SharedUtils.cs
- SerializationEventsCache.cs
- ExceptionUtil.cs
- DataGridRowsPresenter.cs
- SessionStateItemCollection.cs
- CompiledQuery.cs
- XsltSettings.cs
- WebReferencesBuildProvider.cs
- MetadataFile.cs
- InputMethod.cs
- ClientTarget.cs
- ComponentGlyph.cs
- Rect3D.cs
- DateTimeFormat.cs
- RootContext.cs
- HttpRuntimeSection.cs
- EndOfStreamException.cs
- ProfileServiceManager.cs
- Transform3D.cs
- WrapPanel.cs
- EnumMember.cs
- DataTableMappingCollection.cs
- EntityTypeEmitter.cs
- HitTestResult.cs
- SignedPkcs7.cs
- DynamicMethod.cs
- GACIdentityPermission.cs
- ModelItemImpl.cs
- SubMenuStyle.cs
- TextEditor.cs
- ToolStripCustomTypeDescriptor.cs
- DrawingContext.cs
- ItemCheckEvent.cs
- InputLanguageSource.cs
- HitTestResult.cs
- PresentationTraceSources.cs
- DivideByZeroException.cs
- XamlStackWriter.cs
- SqlCrossApplyToCrossJoin.cs
- Update.cs
- WindowsAuthenticationModule.cs
- InputLanguage.cs
- PermissionSetTriple.cs
- ObjectHandle.cs
- TextBoxView.cs
- Panel.cs
- TrackingLocationCollection.cs
- PngBitmapDecoder.cs
- ValueType.cs
- cryptoapiTransform.cs
- SplitterPanel.cs
- COM2ColorConverter.cs
- SplashScreenNativeMethods.cs
- InvalidOleVariantTypeException.cs
- arabicshape.cs
- Context.cs
- OletxEnlistment.cs
- FixedDSBuilder.cs
- InstanceNameConverter.cs
- ObservableCollection.cs
- _ListenerAsyncResult.cs
- PointF.cs
- DefaultHttpHandler.cs
- WaitHandleCannotBeOpenedException.cs
- RoutedPropertyChangedEventArgs.cs
- CodeRemoveEventStatement.cs
- iisPickupDirectory.cs
- DataGridLength.cs
- Int32Converter.cs
- XmlSchemaAppInfo.cs
- ContextStack.cs
- PriorityItem.cs
- ControlParser.cs
- DesignTimeTemplateParser.cs
- ClientConvert.cs