예제 #1
0
        public static void AppTest(App app, Action innerAction)
        {
            var appThread = new Thread(() => {
                app.RunHttpServer(AppPrefix);
            });

            try
            {
                appThread.Start();
                innerAction();
            }
            finally
            {
                app.Stop();
                appThread.Join();
            }
        }