Represents a CruncherProcessingSection within a configuration file.
상속: System.Configuration.ConfigurationSection
        /// <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());
        }
예제 #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()));
 }