Пример #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();
            }
        }
Пример #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();
            }
        }
Пример #3
0
 public ServiceManager()
 {
     var serviceName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
     this.ServiceName = serviceName;
     webAppManager = new WebAppManager();
     auditManager = new AuditManager(null, null, null, null, null);
 }
Пример #4
0
        public ServiceManager()
        {
            var serviceName = System.Reflection.Assembly.GetExecutingAssembly().FullName;

            this.ServiceName = serviceName;
            webAppManager    = new WebAppManager();
            auditManager     = new AuditManager(null, null, null, null, null);
        }