public static void Main(string[] args) { var cfg = PrepareHostConfig(args); var srv = new HostServer(cfg); Console.WriteLine("Конфигурация"); Console.WriteLine(cfg); srv.Start(); var cmd = ""; while ((cmd = Console.ReadLine()) != "exit") { if (cmd == "stat") { Console.WriteLine(srv.GetStatisticsString()); } } srv.Stop(); }
public HostRequestHandler(HostServer server, WebContext context) { _server = server; _context = context; _cancel = _server._cancel; }
public HostRequestHandler(HostServer server, WebContext context){ _server = server; _context = context; _cancel = _server._cancel; }
static void Main(string[] args) { var server = new HostServer(8093); server.Start(); Console.ReadLine(); }