private static void RunCommandLine() { AddCommandLineLogger(); log.Info("Running in command-line mode."); try { var actionManager = new WebAppManager(); actionManager.Start(); var auditManager = new AuditManager(null, null, null, null, null); auditManager.Start(); Console.WriteLine("Press enter to stop...."); Console.ReadLine(); actionManager.Stop(); auditManager.Stop(); } catch (Exception ex) { log.Error(ex.ToString()); Console.WriteLine("Press enter to stop...."); Console.ReadLine(); } }
protected override void OnStop() { webAppManager.Stop(); auditManager.Stop(); }