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
- StrongNameMembershipCondition.cs
- OdbcRowUpdatingEvent.cs
- SchemaElementDecl.cs
- ObjectConverter.cs
- EventTrigger.cs
- HttpCachePolicyElement.cs
- FullTextBreakpoint.cs
- _SecureChannel.cs
- NavigationWindowAutomationPeer.cs
- ObjectDataSourceEventArgs.cs
- TargetPerspective.cs
- WebServiceParameterData.cs
- PanelStyle.cs
- SplashScreen.cs
- ProxyWebPartConnectionCollection.cs
- ShadowGlyph.cs
- ChannelManager.cs
- BaseComponentEditor.cs
- CharacterShapingProperties.cs
- NumberSubstitution.cs
- ObjectDataSourceMethodEventArgs.cs
- TextEffect.cs
- SymbolTable.cs
- ObjectHelper.cs
- RegexMatchCollection.cs
- KnownTypeDataContractResolver.cs
- WebPartConnectionsCloseVerb.cs
- SerializationHelper.cs
- XmlNodeList.cs
- ToolboxItemWrapper.cs
- MultiAsyncResult.cs
- SQLChars.cs
- _SafeNetHandles.cs
- SamlNameIdentifierClaimResource.cs
- _NegoState.cs
- SubpageParagraph.cs
- DrawingState.cs
- AnimatedTypeHelpers.cs
- ScriptHandlerFactory.cs
- ReliabilityContractAttribute.cs
- SqlBulkCopyColumnMapping.cs
- RIPEMD160.cs
- basemetadatamappingvisitor.cs
- ImportCatalogPart.cs
- UpdatableWrapper.cs
- XmlWrappingReader.cs
- SchemaAttDef.cs
- WeakReferenceKey.cs
- X509Chain.cs
- WebExceptionStatus.cs
- ManualResetEventSlim.cs
- RuntimeWrappedException.cs
- ConfigUtil.cs
- ScriptingSectionGroup.cs
- SqlTypeSystemProvider.cs
- SR.cs
- ClientBuildManagerCallback.cs
- XAMLParseException.cs
- IisTraceWebEventProvider.cs
- DataSourceCache.cs
- NetworkInformationException.cs
- SudsParser.cs
- WhitespaceRuleLookup.cs
- ObjectViewQueryResultData.cs
- ACE.cs
- TrustExchangeException.cs
- FlowSwitch.cs
- DBCommandBuilder.cs
- AutomationElement.cs
- GridEntryCollection.cs
- BuildProviderUtils.cs
- StoragePropertyMapping.cs
- behaviorssection.cs
- RegexCompilationInfo.cs
- SparseMemoryStream.cs
- RuntimeWrappedException.cs
- SecurityCredentialsManager.cs
- Error.cs
- DataGridViewRowPrePaintEventArgs.cs
- DetailsViewRowCollection.cs
- DataGridItemAttachedStorage.cs
- QueryCursorEventArgs.cs
- ActivationArguments.cs
- DataGridViewCellParsingEventArgs.cs
- NativeMethods.cs
- FontStyleConverter.cs
- ScriptControlDescriptor.cs
- EmptyEnumerator.cs
- GridItemProviderWrapper.cs
- QilLoop.cs
- SizeChangedInfo.cs
- SafeArrayRankMismatchException.cs
- TextTreeUndoUnit.cs
- SqlWorkflowPersistenceService.cs
- StorageInfo.cs
- MenuItemStyleCollection.cs
- EventOpcode.cs
- FastPropertyAccessor.cs
- DataGridViewRowConverter.cs
- MappingMetadataHelper.cs