BlueCollar.Console.Program.ConsoleCancelKeyPress C# (CSharp) Method

ConsoleCancelKeyPress() private static method

Raises the console's CancelKeyPress event.
private static ConsoleCancelKeyPress ( object sender, ConsoleCancelEventArgs e ) : void
sender object The event sender.
e System.ConsoleCancelEventArgs The event arguments.
return void
        private static void ConsoleCancelKeyPress(object sender, ConsoleCancelEventArgs e)
        {
            lock (Locker)
            {
                if (bootstraps != null)
                {
                    bootstraps.Dispose();
                    bootstraps = null;
                }
            }
        }