예제 #1
0
 public static void Terminate()
 {
     MagnitudeService.Teardown();
     PipeService.Teardown();
     ParentHeartbeatService.Teardown();
     Environment.Exit(0);
 }
예제 #2
0
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            Console.WriteLine("starting");
            Store.Data = new StoreInstance();

            if (args.Length > 0)
            {
                int processId = -1;
                if (int.TryParse(args[0], out processId))
                {
                    Store.Data.App.ParentProcessId = processId;
                }
                else
                {
                    Loggers.CliLogger.Error("No parent process ID argument detected.");
                }
            }

            ParentHeartbeatService.Monitor();
            PipeService.Listen();
        }