//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.Configuration { using System.Configuration; using DotNetOpenAuth.Messaging.Bindings; /// /// Represents the <oauth/serviceProvider> element in the host's .config file. /// internal class OAuthServiceProviderElement : ConfigurationElement { /// /// The name of the custom store sub-element. /// private const string StoreConfigName = "store"; /// /// Gets the name of the security sub-element. /// private const string SecuritySettingsConfigName = "security"; /// /// Initializes a new instance of the class. /// internal OAuthServiceProviderElement() { } /// /// Gets or sets the type to use for storing application state. /// [ConfigurationProperty(StoreConfigName)] public TypeConfigurationElement ApplicationStore { get { return (TypeConfigurationElement)this[StoreConfigName] ?? new TypeConfigurationElement(); } set { this[StoreConfigName] = value; } } /// /// Gets or sets the security settings. /// [ConfigurationProperty(SecuritySettingsConfigName)] public OAuthServiceProviderSecuritySettingsElement SecuritySettings { get { return (OAuthServiceProviderSecuritySettingsElement)this[SecuritySettingsConfigName] ?? new OAuthServiceProviderSecuritySettingsElement(); } set { this[SecuritySettingsConfigName] = value; } } } }