예제 #1
0
        // 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();
        }
예제 #2
0
파일: Program.cs 프로젝트: Darunphop/DNWS
        // 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();
        }
예제 #3
0
        // 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();
        }