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
47 lines
2.1 KiB
C#
47 lines
2.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.ServiceModel.Configuration
|
|
{
|
|
using System.Configuration;
|
|
using System.Runtime;
|
|
using System.Security;
|
|
|
|
public sealed partial class ProtocolMappingSection : ConfigurationSection
|
|
{
|
|
public ProtocolMappingSection()
|
|
{
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.DefaultCollectionName, Options = ConfigurationPropertyOptions.IsDefaultCollection)]
|
|
public ProtocolMappingElementCollection ProtocolMappingCollection
|
|
{
|
|
get { return (ProtocolMappingElementCollection) base[ConfigurationStrings.DefaultCollectionName]; }
|
|
}
|
|
|
|
protected override void InitializeDefault()
|
|
{
|
|
this.ProtocolMappingCollection.Add(new ProtocolMappingElement("http", "basicHttpBinding", ConfigurationStrings.DefaultName));
|
|
this.ProtocolMappingCollection.Add(new ProtocolMappingElement("net.tcp", "netTcpBinding", ConfigurationStrings.DefaultName));
|
|
this.ProtocolMappingCollection.Add(new ProtocolMappingElement("net.pipe", "netNamedPipeBinding", ConfigurationStrings.DefaultName));
|
|
this.ProtocolMappingCollection.Add(new ProtocolMappingElement("net.msmq", "netMsmqBinding", ConfigurationStrings.DefaultName));
|
|
}
|
|
|
|
internal static ProtocolMappingSection GetSection()
|
|
{
|
|
return (ProtocolMappingSection)ConfigurationHelpers.GetSection(ConfigurationStrings.ProtocolMappingSectionPath);
|
|
}
|
|
|
|
[Fx.Tag.SecurityNote(Critical = "Calls Critical method UnsafeGetSection which elevates in order to fetch config."
|
|
+ "Caller must guard access to resultant config section.")]
|
|
[SecurityCritical]
|
|
internal static ProtocolMappingSection UnsafeGetSection()
|
|
{
|
|
return (ProtocolMappingSection)ConfigurationHelpers.UnsafeGetSection(ConfigurationStrings.ProtocolMappingSectionPath);
|
|
}
|
|
}
|
|
}
|
|
|
|
|