Settings for automatic redirection of mobile devices.
Inheritance: System.Configuration.ConfigurationSection
コード例 #1
0
        /// <summary>
        /// Creates a new configuration instance checking for
        /// fresh data.
        /// </summary>
        internal static void Refresh()
        {
            // Ensure the managers detection section is refreshed in case the
            // process is not going to restart as a result of the change.
            ConfigurationManager.RefreshSection("fiftyOne/redirect");

            Redirect = Support.GetWebApplicationSection("fiftyOne/redirect", false) as RedirectSection;
        }
コード例 #2
0
        /// <summary>
        /// Creates a new configuration instance checking for
        /// fresh data.
        /// </summary>
        internal static void Refresh()
        {
            // Ensure the managers detection section is refreshed in case the
            // process is not going to restart as a result of the change.
            ConfigurationManager.RefreshSection("fiftyOne/redirect");

            Redirect = Support.GetWebApplicationSection("fiftyOne/redirect", false) as RedirectSection;
        }
コード例 #3
0
ファイル: Manager.cs プロジェクト: davelondon/dontstayin
        static Manager()
        {
            Log = (LogSection)Support.GetWebApplicationSection("fiftyOne/log", false);
            Redirect = (RedirectSection)Support.GetWebApplicationSection("fiftyOne/redirect", false);

            if (Redirect == null)
                Redirect = new RedirectSection();
        }
コード例 #4
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();
        }
コード例 #5
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();
            }
        }
コード例 #6
0
ファイル: Manager.cs プロジェクト: jango2015/51DegreesDNN
 static Manager()
 {
     Log      = (LogSection)WebConfigurationManager.GetWebApplicationSection("fiftyOne/log");
     Redirect = (RedirectSection)WebConfigurationManager.GetWebApplicationSection("fiftyOne/redirect");
 }
コード例 #7
0
ファイル: Manager.cs プロジェクト: irobinson/51DegreesDNN
 static Manager()
 {
     Log = (LogSection) WebConfigurationManager.GetWebApplicationSection("fiftyOne/log");
     Redirect = (RedirectSection) WebConfigurationManager.GetWebApplicationSection("fiftyOne/redirect");
 }