BlueCollar.Console.Program.ParentProcessExited C# (CSharp) Method

ParentProcessExited() private static method

Raises the parent process' Exited event.
private static ParentProcessExited ( object sender, EventArgs e ) : void
sender object The event sender.
e System.EventArgs The event arguments.
return void
        private static void ParentProcessExited(object sender, EventArgs e)
        {
            logger.Info("The process for the application at '{0}' has been orphaned. Shutting down.", options.ApplicationPath);
            isRunning = false;

            lock (Locker)
            {
                if (bootstraps != null)
                {
                    bootstraps.Pushdown(false);
                    bootstraps.Dispose();
                    bootstraps = null;
                }

                if (inputThread != null)
                {
                    inputThread.IsBackground = true;
                }
            }
        }