Represents an image processing section within a configuration file. Nested syntax adapted from
상속: 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 ImageProcessingSection GetConfiguration()
        {
            ImageProcessingSection imageProcessingSection =
                ConfigurationManager.GetSection("imageProcessor/processing") as ImageProcessingSection;

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

            string    section = ResourceHelpers.ResourceAsString("ImageProcessor.Web.Configuration.Resources.processing.config.transform");
            XmlReader reader  = new XmlTextReader(new StringReader(section));

            imageProcessingSection = new ImageProcessingSection();
            imageProcessingSection.DeserializeSection(reader);
            return(imageProcessingSection);
        }
 /// <summary>
 /// Retrieves the processing configuration section from the current application configuration.
 /// </summary>
 /// <returns>The processing configuration section from the current application configuration. </returns>
 private static ImageProcessingSection GetImageProcessingSection() => imageProcessingSection ?? (imageProcessingSection = ImageProcessingSection.GetConfiguration());
        /// <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 ImageProcessingSection GetConfiguration()
        {
            ImageProcessingSection imageProcessingSection =
                ConfigurationManager.GetSection("imageProcessor/processing") as ImageProcessingSection;

            if (imageProcessingSection != null)
            {
                imageProcessingSection.AutoLoadPlugins = false;
                return imageProcessingSection;
            }

            string section = ResourceHelpers.ResourceAsString("ImageProcessor.Web.Configuration.Resources.processing.config.transform");
            XmlReader reader = new XmlTextReader(new StringReader(section));
            imageProcessingSection = new ImageProcessingSection();
            imageProcessingSection.DeserializeSection(reader);
            imageProcessingSection.AutoLoadPlugins = true;
            return imageProcessingSection;
        }
 /// <summary>
 /// Retrieves the processing configuration section from the current application configuration. 
 /// </summary>
 /// <returns>The processing configuration section from the current application configuration. </returns>
 private static ImageProcessingSection GetImageProcessingSection()
 {
     return imageProcessingSection ?? (imageProcessingSection = ImageProcessingSection.GetConfiguration());
 }