/// <summary>
        /// Retrieves the security configuration section from the current application configuration.
        /// </summary>
        /// <returns>The cache configuration section from the current application configuration.</returns>
        public static CruncherSecuritySection GetConfiguration()
        {
            CruncherSecuritySection cruncherProcessingSection = ConfigurationManager.GetSection("cruncher/security") as CruncherSecuritySection;

            if (cruncherProcessingSection != null)
            {
                return(cruncherProcessingSection);
            }

            return(new CruncherSecuritySection());
        }
Beispiel #2
0
 /// <summary>
 /// Retrieves the security configuration section from the current application configuration.
 /// </summary>
 /// <returns>The security configuration section from the current application configuration. </returns>
 private CruncherSecuritySection GetCruncherSecuritySection()
 {
     return(this.securitySection ?? (this.securitySection = CruncherSecuritySection.GetConfiguration()));
 }