Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
 protected override void OnStop()
 {
     webAppManager.Stop();
     auditManager.Stop();
 }