// Start the server, Singleton here public void Start() { // Start server var builder = new ConfigurationBuilder(); builder.SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("config.json"); Configuration = builder.Build(); DotNetWebServer ws = DotNetWebServer.GetInstance(this); ws.Start(); }
// Start the server, Singleton here public void Start() { // Start server var builder = new ConfigurationBuilder(); builder.SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("config.json"); Configuration = builder.Build(); threadMode = Configuration["mode"]; maxPool = Convert.ToInt32(Configuration["maxPool"]); DotNetWebServer ws = DotNetWebServer.GetInstance(Convert.ToInt16(Configuration["Port"]), this); ws.Start(); }
// Start the server, Singleton here public void Start() { // Start server var builder = new ConfigurationBuilder(); builder.SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("config.json"); Configuration = builder.Build(); // FIXME: refactor this into separate plugin system WerewolfManager wm = new WerewolfManager(); wm.Start(); DotNetWebServer ws = DotNetWebServer.GetInstance(this); ws.Start(); }