static async Task Main(string[] args) { Console.WriteLine("Starting server"); var server = new SoupBinTCP.NET.Server(new ServerListener()); server.Start(); var command = ""; while (command != "x") { command = Console.ReadLine(); } await server.Shutdown(); }
private static async Task RunServerAsync() { var server = new SoupBinTCP.NET.Server(new ServerListener()); server.Start(); string command = ""; while (command != "x") { command = Console.ReadLine(); } await Task.FromResult(false); server.Shutdown(); }