mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
83 lines
3.2 KiB
C#
83 lines
3.2 KiB
C#
//-----------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
namespace System.ServiceModel.Activation.Configuration
|
|
{
|
|
using System;
|
|
using System.Configuration;
|
|
using System.ServiceModel.Channels;
|
|
using System.ServiceModel.Configuration;
|
|
|
|
public sealed partial class NetPipeSection : ConfigurationSection
|
|
{
|
|
PropertyInformationCollection propertyInfo;
|
|
|
|
public NetPipeSection()
|
|
: base()
|
|
{
|
|
propertyInfo = this.ElementInformation.Properties;
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.AllowAccounts)]
|
|
public SecurityIdentifierElementCollection AllowAccounts
|
|
{
|
|
get { return (SecurityIdentifierElementCollection)base[ConfigurationStrings.AllowAccounts]; }
|
|
}
|
|
|
|
static internal NetPipeSection GetSection()
|
|
{
|
|
NetPipeSection retval = (NetPipeSection)ConfigurationManager.GetSection(ConfigurationStrings.NetPipeSectionPath);
|
|
if (retval == null)
|
|
{
|
|
retval = new NetPipeSection();
|
|
}
|
|
return retval;
|
|
}
|
|
|
|
protected override void InitializeDefault()
|
|
{
|
|
this.AllowAccounts.SetDefaultIdentifiers();
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.MaxPendingConnections, DefaultValue = ListenerConstants.DefaultMaxPendingConnections)]
|
|
[IntegerValidator(MinValue = 0)]
|
|
public int MaxPendingConnections
|
|
{
|
|
get { return (int)base[ConfigurationStrings.MaxPendingConnections]; }
|
|
set { base[ConfigurationStrings.MaxPendingConnections] = value; }
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.MaxPendingAccepts, DefaultValue = ListenerConstants.DefaultMaxPendingAccepts)]
|
|
[IntegerValidator(MinValue = 0)]
|
|
public int MaxPendingAccepts
|
|
{
|
|
get
|
|
{
|
|
int maxPendingAccepts = (int)base[ConfigurationStrings.MaxPendingAccepts];
|
|
|
|
if (maxPendingAccepts != ListenerConstants.DefaultMaxPendingAccepts)
|
|
{
|
|
// if the user changed the default, return user's value
|
|
return maxPendingAccepts;
|
|
}
|
|
else
|
|
{
|
|
// otherwise return 2 * transport default, since SMSvcHost defaults are global
|
|
return 2 * ConnectionOrientedTransportDefaults.GetMaxPendingAccepts();
|
|
}
|
|
}
|
|
set { base[ConfigurationStrings.MaxPendingAccepts] = value; }
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.ReceiveTimeout, DefaultValue = ListenerConstants.DefaultReceiveTimeoutString)]
|
|
[System.ComponentModel.TypeConverter(typeof(TimeSpanOrInfiniteConverter))]
|
|
[System.ServiceModel.Configuration.ServiceModelTimeSpanValidator(MinValueString = ConfigurationStrings.TimeSpanZero)]
|
|
public TimeSpan ReceiveTimeout
|
|
{
|
|
get { return (TimeSpan)base[ConfigurationStrings.ReceiveTimeout]; }
|
|
set { base[ConfigurationStrings.ReceiveTimeout] = value; }
|
|
}
|
|
}
|
|
}
|