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