Exemplo n.º 1
0
        /// <summary>
        /// Retrieves the processing configuration section from the current application configuration.
        /// </summary>
        /// <returns>The processing configuration section from the current application configuration. </returns>
        public static CruncherProcessingSection GetConfiguration()
        {
            CruncherProcessingSection clientResourcesProcessingSection = ConfigurationManager.GetSection("cruncher/processing") as CruncherProcessingSection;

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

            return(new CruncherProcessingSection());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Retrieves the processing configuration section from the current application configuration.
 /// </summary>
 /// <returns>The processing configuration section from the current application configuration. </returns>
 private CruncherProcessingSection GetCruncherProcessingSection()
 {
     return(this.processingSection ?? (this.processingSection = CruncherProcessingSection.GetConfiguration()));
 }