public void RestartThisService(object source, ElapsedEventArgs e) { Logger.WriteLog("INFO: Restarting Middlware Service..."); SendMail.Send(mailSubject, mailBody); Environment.Exit(1); }