static void CancelKeyPress(object sender, ConsoleCancelEventArgs _args) { if (_args.SpecialKey == ConsoleSpecialKey.ControlC) { Console.WriteLine("Cancelling..."); _args.Cancel = true; if (archiver != null) { archiver.Cancel(); } } }
static void CancelKeyPress(object sender, ConsoleCancelEventArgs _args) { if (_args.SpecialKey == ConsoleSpecialKey.ControlC) { Console.WriteLine("Cancelling..."); _args.Cancel = true; if (archiver != null) { archiver.Cancel(); } } }