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
- MruCache.cs
- ToolStripItemRenderEventArgs.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- ToolboxItemFilterAttribute.cs
- DocumentsTrace.cs
- TimeZone.cs
- EntityCollection.cs
- SrgsToken.cs
- sqlinternaltransaction.cs
- _IPv6Address.cs
- AttributeCollection.cs
- ResumeStoryboard.cs
- VisualTreeUtils.cs
- Base64WriteStateInfo.cs
- ExpressionBindings.cs
- PageSetupDialog.cs
- DataTableNewRowEvent.cs
- SoapSchemaExporter.cs
- ToolStripTextBox.cs
- MoveSizeWinEventHandler.cs
- DependencyPropertyKey.cs
- ConnectionConsumerAttribute.cs
- ScrollChrome.cs
- SignatureHelper.cs
- DateTimeSerializationSection.cs
- PointHitTestParameters.cs
- ListContractAdapter.cs
- CachedFontFamily.cs
- Dictionary.cs
- TextLineResult.cs
- AnimatedTypeHelpers.cs
- EventProviderWriter.cs
- ComplusTypeValidator.cs
- MetadataArtifactLoaderFile.cs
- BindingOperations.cs
- LookupNode.cs
- EventHandlersStore.cs
- precedingsibling.cs
- DragAssistanceManager.cs
- SynchronizationHandlesCodeDomSerializer.cs
- HttpDictionary.cs
- DescendentsWalker.cs
- DataGridState.cs
- DataGridViewLinkColumn.cs
- UnwrappedTypesXmlSerializerManager.cs
- HttpResponseInternalWrapper.cs
- EncoderFallback.cs
- XmlSchemaSimpleTypeUnion.cs
- _SpnDictionary.cs
- HScrollBar.cs
- Freezable.cs
- CollectionChangedEventManager.cs
- ReadOnlyNameValueCollection.cs
- Animatable.cs
- MergeExecutor.cs
- DateRangeEvent.cs
- Queue.cs
- CompatibleComparer.cs
- DbCommandDefinition.cs
- RemoveStoryboard.cs
- NamespaceList.cs
- ConvertTextFrag.cs
- CodeAttributeArgument.cs
- AppliedDeviceFiltersEditor.cs
- EventHandlerList.cs
- WorkflowMarkupElementEventArgs.cs
- ExpressionConverter.cs
- SafeNativeMethods.cs
- ToggleButton.cs
- WebPartManagerDesigner.cs
- EntityConnectionStringBuilder.cs
- shaperfactoryquerycachekey.cs
- PopupRootAutomationPeer.cs
- CatchBlock.cs
- BitVec.cs
- KeysConverter.cs
- ApplyTemplatesAction.cs
- CodeObject.cs
- Converter.cs
- SkinBuilder.cs
- Rotation3DKeyFrameCollection.cs
- SoapMessage.cs
- PointCollectionValueSerializer.cs
- ImageButton.cs
- TypedMessageConverter.cs
- AuthorizationContext.cs
- ItemChangedEventArgs.cs
- CodeDirectionExpression.cs
- MasterPage.cs
- PageEventArgs.cs
- HMACSHA256.cs
- NullableDoubleSumAggregationOperator.cs
- MsmqProcessProtocolHandler.cs
- SamlAuthenticationStatement.cs
- ADMembershipUser.cs
- ConditionalAttribute.cs
- HtmlTextArea.cs
- TcpChannelFactory.cs
- GeneralTransformGroup.cs
- HtmlInputRadioButton.cs