コード例 #1
0
        static void Main(string[] args)
        {
            var host = InteropServer.StartAsync <DotBpeStartup>().Result;

            Console.WriteLine("Press any key to quit!");
            Console.ReadKey();

            host.ShutdownAsync().Wait();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Console.OutputEncoding = System.Text.Encoding.UTF8;

            var host = InteropServer.StartAsync <DotBpeStartup>().Result;

            Console.WriteLine("Press any key to quit!");
            Console.ReadKey();

            host.ShutdownAsync().Wait();
        }