private static void Shutdown(ShutdownCodes code) { PrepareShutdown(code); Environment.Exit((int)code); }
public static void PrepareShutdown(ShutdownCodes code) { NLog.LogManager.Shutdown(); Environment.ExitCode = (int)code; }