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
2.9 KiB
C#
83 lines
2.9 KiB
C#
//------------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.ServiceModel.Configuration
|
|
{
|
|
using System.Configuration;
|
|
using System.ServiceModel.Channels;
|
|
using System.ServiceModel;
|
|
|
|
public sealed class ServiceModelSectionGroup : ConfigurationSectionGroup
|
|
{
|
|
public ServiceModelSectionGroup() { }
|
|
|
|
public BehaviorsSection Behaviors
|
|
{
|
|
get { return (BehaviorsSection)this.Sections[ConfigurationStrings.BehaviorsSectionName]; }
|
|
}
|
|
|
|
public BindingsSection Bindings
|
|
{
|
|
get { return (BindingsSection)this.Sections[ConfigurationStrings.BindingsSectionGroupName]; }
|
|
}
|
|
|
|
public ClientSection Client
|
|
{
|
|
get { return (ClientSection)this.Sections[ConfigurationStrings.ClientSectionName]; }
|
|
}
|
|
|
|
public ComContractsSection ComContracts
|
|
{
|
|
get { return (ComContractsSection)this.Sections[ConfigurationStrings.ComContractsSectionName]; }
|
|
}
|
|
|
|
public CommonBehaviorsSection CommonBehaviors
|
|
{
|
|
get { return (CommonBehaviorsSection)this.Sections[ConfigurationStrings.CommonBehaviorsSectionName]; }
|
|
}
|
|
|
|
public DiagnosticSection Diagnostic
|
|
{
|
|
get { return (DiagnosticSection)this.Sections[ConfigurationStrings.DiagnosticSectionName]; }
|
|
}
|
|
|
|
public ServiceHostingEnvironmentSection ServiceHostingEnvironment
|
|
{
|
|
get { return (ServiceHostingEnvironmentSection)this.Sections[ConfigurationStrings.ServiceHostingEnvironmentSectionName]; }
|
|
}
|
|
|
|
public ExtensionsSection Extensions
|
|
{
|
|
get { return (ExtensionsSection)this.Sections[ConfigurationStrings.Extensions]; }
|
|
}
|
|
|
|
public ProtocolMappingSection ProtocolMapping
|
|
{
|
|
get { return (ProtocolMappingSection)this.Sections[ConfigurationStrings.ProtocolMappingSectionName]; }
|
|
}
|
|
|
|
public ServicesSection Services
|
|
{
|
|
get { return (ServicesSection)this.Sections[ConfigurationStrings.ServicesSectionName]; }
|
|
}
|
|
|
|
public StandardEndpointsSection StandardEndpoints
|
|
{
|
|
get { return (StandardEndpointsSection)this.Sections[ConfigurationStrings.StandardEndpointsSectionName]; }
|
|
}
|
|
|
|
public static ServiceModelSectionGroup GetSectionGroup(Configuration config)
|
|
{
|
|
if (config == null)
|
|
{
|
|
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("config");
|
|
}
|
|
|
|
#pragma warning suppress 56506 //[....]; config.SectionGroups can never be null (underlying configuration system guarantees)
|
|
return (ServiceModelSectionGroup)config.SectionGroups[ConfigurationStrings.SectionGroupName];
|
|
}
|
|
|
|
}
|
|
}
|