static void Exit(Logger logger, CancellationTokenSource src, ExtensionRunnerExitCode exitCode) { if(logger != null) logger.Info("Exiting (code: " + exitCode + ")"); src.Cancel(); Environment.Exit((int)exitCode); }
static void Exit(Logger logger, CancellationTokenSource src, ExtensionRunnerExitCode exitCode) { if (logger != null) { logger.Info("Exiting (code: " + exitCode + ")"); } src.Cancel(); Environment.Exit((int)exitCode); }