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
- Win32PrintDialog.cs
- Splitter.cs
- HandlerFactoryCache.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- PreDigestedSignedInfo.cs
- PkcsUtils.cs
- FunctionUpdateCommand.cs
- WinEventQueueItem.cs
- MonthCalendarDesigner.cs
- DataSpaceManager.cs
- NavigatingCancelEventArgs.cs
- SqlConnectionPoolProviderInfo.cs
- WbemProvider.cs
- ApplicationFileCodeDomTreeGenerator.cs
- EditingMode.cs
- RepeatBehaviorConverter.cs
- Base64WriteStateInfo.cs
- AncillaryOps.cs
- CustomValidator.cs
- HostSecurityManager.cs
- SolidColorBrush.cs
- TiffBitmapDecoder.cs
- ObjectListTitleAttribute.cs
- InfiniteIntConverter.cs
- ContextActivityUtils.cs
- PrintingPermissionAttribute.cs
- QuerySafeNavigator.cs
- TableDetailsCollection.cs
- FixedSOMTable.cs
- WindowsGraphicsWrapper.cs
- BitmapEffectrendercontext.cs
- validation.cs
- RenderOptions.cs
- TreeViewItemAutomationPeer.cs
- BinaryReader.cs
- Container.cs
- BroadcastEventHelper.cs
- Viewport3DAutomationPeer.cs
- PreviewPrintController.cs
- MetadataSet.cs
- DataContractSerializerSection.cs
- ItemChangedEventArgs.cs
- CharEnumerator.cs
- TextTreePropertyUndoUnit.cs
- FixedLineResult.cs
- URL.cs
- SubclassTypeValidator.cs
- SQLMoneyStorage.cs
- XPathDocumentBuilder.cs
- SingleConverter.cs
- URLAttribute.cs
- Light.cs
- PersonalizationProviderCollection.cs
- ProfileEventArgs.cs
- GridViewPageEventArgs.cs
- ComponentEvent.cs
- SkipQueryOptionExpression.cs
- ImageBrush.cs
- PathFigureCollection.cs
- WebPartTransformerAttribute.cs
- TextBoxBase.cs
- InvokeAction.cs
- FileRecordSequenceCompletedAsyncResult.cs
- GradientStopCollection.cs
- MenuTracker.cs
- IndexObject.cs
- TimerEventSubscription.cs
- FontCacheLogic.cs
- TransformerTypeCollection.cs
- COM2Properties.cs
- ServiceObjectContainer.cs
- SiteMapNodeCollection.cs
- Exception.cs
- OdbcParameterCollection.cs
- RawStylusSystemGestureInputReport.cs
- WebPartUtil.cs
- CounterCreationDataCollection.cs
- DataGridTablesFactory.cs
- WrappedDispatcherException.cs
- XmlLanguageConverter.cs
- SoapReflector.cs
- ImageFormat.cs
- SpAudioStreamWrapper.cs
- HttpModuleCollection.cs
- HtmlInputText.cs
- ProgressBar.cs
- AlphabeticalEnumConverter.cs
- UrlMappingCollection.cs
- CaseStatement.cs
- DropDownButton.cs
- ArrayList.cs
- ChannelBase.cs
- SerializerWriterEventHandlers.cs
- IDispatchConstantAttribute.cs
- NavigationPropertyEmitter.cs
- SequenceRange.cs
- SystemIPInterfaceProperties.cs
- IfJoinedCondition.cs
- IsolatedStorageFile.cs
- LineVisual.cs