Exemplo n.º 1
0
        public static async Task Main(string[] args)
        {
            var host = new CustomHost();

            Console.WriteLine("Starting!");
            host.Start();
            Console.WriteLine("Started!");
            Console.ReadLine();

            Console.WriteLine("Stopping!");
            await host.StopAsync();

            Console.WriteLine("Stopped!");
        }