示例#1
0
        /// <summary>
        /// Default values for system settings.
        /// </summary>
        /// <returns>Settings object.</returns>
        public static Settings Default()
        {
            Settings ret = new Settings();

            ret.Environment   = "linux";
            ret.EnableConsole = true;
            ret.Logging       = SettingsLogging.Default();
            ret.Proxy         = SettingsProxy.Default();
            return(ret);
        }
示例#2
0
        /// <summary>
        /// Default values for proxy server settings.
        /// </summary>
        /// <returns>SettingsProxy object.</returns>
        public static SettingsProxy Default()
        {
            SettingsProxy ret = new SettingsProxy();

            ret.AcceptInvalidCertificates = true;
            ret.ListenerPort      = 8000;
            ret.ListenerIpAddress = "0.0.0.0";
            ret.Ssl        = false;
            ret.MaxThreads = 100;
            return(ret);
        }