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