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>(); }
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>(); }
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(); }
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(); }