Exemple #1
0
        static void process_OnProcessExited(object sender, ServerProcess.OnExitedEventArgs e)
        {
            string message = string.Format("Process exited with code {0}", e.ExitCode);

            if (OnEventLogMessage != null)
            {
                OnEventLogMessage(sender, new OnEventLogMessageArgs()
                {
                    Message = message
                });
            }
            if (OnProcessExited != null)
            {
                OnProcessExited(sender, e);
            }
        }
Exemple #2
0
 void Program_OnProcessExited(object sender, ServerProcess.OnExitedEventArgs e)
 {
     ExitCode = e.ExitCode;
     Environment.Exit(ExitCode);
 }