Esempio n. 1
0
        public Configuration()
        {
            //20 minutes
            AutomaticUpdateInterval = 20 * 60;

            //5 seconds
            ReconnectDelay = 5 * 1000;

            //Default to SQLite instead of Mono
            DatabaseProvider = "System.Data.SQLite";

            Database = "RiotControl.sqlite";

            Index = "Index.html.template";

            RankedSeason = 2;

            MinimiseToTray = true;

            Web = new WebConfiguration();
            Authentication = new AuthenticationProfile();

            Proxy = new ProxyProfile();

            //Not really necessary
            Privileges = new List<PrivilegeClass>();

            //Not really necessary
            RegionProfiles = new List<EngineRegionProfile>();
        }
Esempio n. 2
0
        public Configuration()
        {
            //20 minutes
            AutomaticUpdateInterval = 20 * 60;

            //5 seconds
            ReconnectDelay = 5 * 1000;

            //Default to SQLite instead of Mono
            DatabaseProvider = "System.Data.SQLite";

            Database = "RiotControl.sqlite";

            Index = "Index.html.template";

            RankedSeason = 2;

            MinimiseToTray = true;

            Web            = new WebConfiguration();
            Authentication = new AuthenticationProfile();

            Proxy = new ProxyProfile();

            //Not really necessary
            Privileges = new List <PrivilegeClass>();

            //Not really necessary
            RegionProfiles = new List <EngineRegionProfile>();
        }
Esempio n. 3
0
        public WebService(IGlobalHandler globalHandler, Configuration configuration, StatisticsService statisticsService, Database databaseProvider)
        {
            GlobalHandler = globalHandler;
            ProgramConfiguration = configuration;
            ServiceConfiguration = configuration.Web;
            StatisticsService = statisticsService;
            Server = new WebServer(ServiceConfiguration.Host, ServiceConfiguration.Port, ServiceConfiguration.EnableReverseProxyRealIPMode, this, this);

            DatabaseProvider = databaseProvider;

            WebServiceProfiler = new Profiler();

            Serialiser = new JavaScriptSerializer();

            Views = new HashSet<string>();
            PRNG = new Random();

            LoadIndex();
            InitialiseHandlers();
        }
Esempio n. 4
0
        public WebService(IGlobalHandler globalHandler, Configuration configuration, StatisticsService statisticsService, Database databaseProvider)
        {
            GlobalHandler        = globalHandler;
            ProgramConfiguration = configuration;
            ServiceConfiguration = configuration.Web;
            StatisticsService    = statisticsService;
            Server = new WebServer(ServiceConfiguration.Host, ServiceConfiguration.Port, ServiceConfiguration.EnableReverseProxyRealIPMode, this, this);

            DatabaseProvider = databaseProvider;

            WebServiceProfiler = new Profiler();

            Serialiser = new JavaScriptSerializer();

            Views = new HashSet <string>();
            PRNG  = new Random();

            LoadIndex();
            InitialiseHandlers();
        }