//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.Configuration { using System.Configuration; using System.Diagnostics.Contracts; /// /// Represents the <oauth2/client> section in the host's .config file. /// internal class OAuth2ClientSection : ConfigurationSection { /// /// The name of the oauth2/client section. /// private const string SectionName = OAuth2SectionGroup.SectionName + "/client"; /// /// Initializes a new instance of the class. /// internal OAuth2ClientSection() { } /// /// Gets the configuration section from the .config file. /// internal static OAuth2ClientSection Configuration { get { Contract.Ensures(Contract.Result() != null); return (OAuth2ClientSection)ConfigurationManager.GetSection(SectionName) ?? new OAuth2ClientSection(); } } } }