Exemplo n.º 1
0
        internal static async Task Restart()
        {
            await Bot.ShutdownAllBots().ConfigureAwait(false);

            System.Diagnostics.Process.Start(ExecutablePath);
            Environment.Exit(0);
        }
Exemplo n.º 2
0
        internal static async Task Exit(int exitCode = 0)
        {
            await Bot.ShutdownAllBots().ConfigureAwait(false);

            Environment.Exit(exitCode);
        }