Beispiel #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();
            }
        }
Beispiel #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();
            }
        }
 protected override void OnStart(string[] args)
 {
     webAppManager.Start();
     auditManager.Start();
 }