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
- XmlSchemaAny.cs
- LinkDescriptor.cs
- ExtensionQuery.cs
- CriticalFinalizerObject.cs
- ExpressionPrinter.cs
- XamlBrushSerializer.cs
- RijndaelManagedTransform.cs
- ConsumerConnectionPointCollection.cs
- RequestCache.cs
- Pair.cs
- DataServiceKeyAttribute.cs
- ComNativeDescriptor.cs
- ManagedIStream.cs
- SolidColorBrush.cs
- BufferedWebEventProvider.cs
- SqlTransaction.cs
- DispatcherExceptionFilterEventArgs.cs
- X509RecipientCertificateClientElement.cs
- SHA1.cs
- WindowsGraphicsCacheManager.cs
- OpenFileDialog.cs
- ArrangedElementCollection.cs
- FilterableAttribute.cs
- QilInvoke.cs
- XmlSchemaAttribute.cs
- wmiutil.cs
- Currency.cs
- DrawTreeNodeEventArgs.cs
- AssemblyName.cs
- OdbcDataAdapter.cs
- EdmSchemaError.cs
- DeclarativeCatalogPart.cs
- AmbiguousMatchException.cs
- DBSchemaRow.cs
- ControlEvent.cs
- httpstaticobjectscollection.cs
- ScrollProperties.cs
- InteropBitmapSource.cs
- SimpleTypesSurrogate.cs
- DefaultValueTypeConverter.cs
- Application.cs
- AttachmentService.cs
- SafeNativeMethods.cs
- Substitution.cs
- DocumentXPathNavigator.cs
- RichTextBoxAutomationPeer.cs
- RangeEnumerable.cs
- PriorityQueue.cs
- CultureInfoConverter.cs
- CaseStatementProjectedSlot.cs
- TypeReference.cs
- ZoneButton.cs
- TextTreeRootNode.cs
- UnderstoodHeaders.cs
- BitmapEffectRenderDataResource.cs
- InfoCardListRequest.cs
- SpecularMaterial.cs
- DataGridViewComboBoxColumn.cs
- AsyncSerializedWorker.cs
- UserValidatedEventArgs.cs
- ErrorWrapper.cs
- DataGridViewCellStyle.cs
- NumberAction.cs
- ServiceNotStartedException.cs
- ParseHttpDate.cs
- OutOfMemoryException.cs
- SafeNativeMethods.cs
- XmlKeywords.cs
- Calendar.cs
- TypeElementCollection.cs
- TreeViewHitTestInfo.cs
- DataSourceListEditor.cs
- DataGridViewCell.cs
- Debug.cs
- SettingsPropertyNotFoundException.cs
- Condition.cs
- FocusManager.cs
- GridErrorDlg.cs
- KernelTypeValidation.cs
- CodeExpressionCollection.cs
- ReadonlyMessageFilter.cs
- CheckedPointers.cs
- DefaultShape.cs
- RuleRefElement.cs
- XamlDesignerSerializationManager.cs
- ProtocolImporter.cs
- Rotation3DAnimationBase.cs
- PageContent.cs
- WebPartConnectionsDisconnectVerb.cs
- smtpconnection.cs
- RolePrincipal.cs
- WebBrowserHelper.cs
- XmlNotation.cs
- Material.cs
- DataColumn.cs
- CodeTypeParameter.cs
- XPathSelfQuery.cs
- Tuple.cs
- IteratorFilter.cs
- SiteMapDataSourceView.cs