Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

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];
}
}
}