Example #1
0
        public void TestExit_ExitAutoResetEvent_True()
        {
            var controller = new HostController();

            controller.Exit();

            HostController.WaitForExitEvent();
        }
        static void Main(string[] args)
        {
            Console.WriteLine("Starting Accessibility Insights WebApi Host...");
            using (WebApp.Start <Startup>(BaseUri))
            {
                Console.WriteLine("Server running at {0}.", BaseUri);
                Console.WriteLine("Wait for api/Host/Exit post to exit...");

                HostController.WaitForExitEvent();
                Console.WriteLine("Accessibility Insights WebApi Host exits.");
            }
        }