Configuration settings for the log file creation and detail.
Наследование: System.Configuration.ConfigurationSection
Пример #1
0
        static Manager()
        {
            Log = (LogSection)Support.GetWebApplicationSection("fiftyOne/log", false);
            Redirect = (RedirectSection)Support.GetWebApplicationSection("fiftyOne/redirect", false);

            if (Redirect == null)
                Redirect = new RedirectSection();
        }
Пример #2
0
        static Manager()
        {
            Log = (LogSection)Support.GetWebApplicationSection("fiftyOne/log", false);
            Redirect = (RedirectSection)Support.GetWebApplicationSection("fiftyOne/redirect", false);
            ImageOptimisation = (ImageOptimisationSection)Support.GetWebApplicationSection("fiftyOne/imageOptimisation", false);

            if (Redirect == null)
                Redirect = new RedirectSection();
            if (ImageOptimisation == null)
                ImageOptimisation = new ImageOptimisationSection();
        }
Пример #3
0
        static Manager()
        {
            Log               = (LogSection)Support.GetWebApplicationSection("fiftyOne/log", false);
            Redirect          = (RedirectSection)Support.GetWebApplicationSection("fiftyOne/redirect", false);
            ImageOptimisation = (ImageOptimisationSection)Support.GetWebApplicationSection("fiftyOne/imageOptimisation", false);

            if (Redirect == null)
            {
                Redirect = new RedirectSection();
            }
            if (ImageOptimisation == null)
            {
                ImageOptimisation = new ImageOptimisationSection();
            }
        }
Пример #4
0
 static Manager()
 {
     Log      = (LogSection)WebConfigurationManager.GetWebApplicationSection("fiftyOne/log");
     Redirect = (RedirectSection)WebConfigurationManager.GetWebApplicationSection("fiftyOne/redirect");
 }
Пример #5
0
 static Manager()
 {
     Log = (LogSection) WebConfigurationManager.GetWebApplicationSection("fiftyOne/log");
     Redirect = (RedirectSection) WebConfigurationManager.GetWebApplicationSection("fiftyOne/redirect");
 }