private static void Main() { var handler = new MyHandler(new ApplicationHost()); handler.Start(); handler.Stop(); }