//-----------------------------------------------------------------------
//
// Copyright (c) Andrew Arnott. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Configuration {
using System.Configuration;
///
/// The configuration element that can adjust how hostmeta discovery works.
///
internal class HostMetaDiscoveryElement : ConfigurationElement {
///
/// The property name for enableCertificateValidationCache.
///
private const string EnableCertificateValidationCacheConfigName = "enableCertificateValidationCache";
///
/// Initializes a new instance of the class.
///
public HostMetaDiscoveryElement() {
}
///
/// Gets or sets a value indicating whether validated certificates should be cached and not validated again.
///
///
/// This helps to avoid unexplained 5-10 second delays in certificate validation for Google Apps for Domains that impact some servers.
///
[ConfigurationProperty(EnableCertificateValidationCacheConfigName, DefaultValue = false)]
public bool EnableCertificateValidationCache {
get { return (bool)this[EnableCertificateValidationCacheConfigName]; }
set { this[EnableCertificateValidationCacheConfigName] = value; }
}
}
}