31 references to CancelKeyPress
aspire (2)
ConsoleCancellationManager.cs (2)
154Console.CancelKeyPress += OnCancelKeyPress; 370Console.CancelKeyPress -= OnCancelKeyPress;
Aspire.TerminalHost (2)
TerminalHostProcessRunner.cs (2)
86Console.CancelKeyPress += cancelKeyPressHandler; 100Console.CancelKeyPress -= cancelKeyPressHandler;
dotnet-aot (8)
parent\dotnet\Commands\MSBuild\MSBuildForwardingApp.cs (1)
137Console.CancelKeyPress += (sender, e) => { e.Cancel = true; };
parent\dotnet\Commands\Run\AotRunCommand.cs (2)
244Console.CancelKeyPress += cancelHandler; 251Console.CancelKeyPress -= cancelHandler;
parent\dotnet\Commands\Test\MTP\CtrlCCancellationManager.cs (2)
46Console.CancelKeyPress += OnConsoleCancelKeyPress; 170Console.CancelKeyPress -= OnConsoleCancelKeyPress;
parent\dotnet\Commands\Test\MTP\Terminal\SystemConsole.cs (2)
43add => Console.CancelKeyPress += value; 44remove => Console.CancelKeyPress -= value;
parent\dotnet\NuGetForwardingApp.cs (1)
28Console.CancelKeyPress += (sender, e) => { e.Cancel = true; };
dotnet-dev-certs (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17Console.CancelKeyPress += (o, e) =>
dotnet-getdocument (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17Console.CancelKeyPress += (o, e) =>
dotnet-openapi (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17Console.CancelKeyPress += (o, e) =>
dotnet-sql-cache (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17Console.CancelKeyPress += (o, e) =>
dotnet-user-jwts (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17Console.CancelKeyPress += (o, e) =>
dotnet-user-secrets (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17Console.CancelKeyPress += (o, e) =>
GetDocument.Insider (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17Console.CancelKeyPress += (o, e) =>
Microsoft.DotNet.Cli.Utils (2)
ProcessReaper.cs (2)
245Console.CancelKeyPress += HandleCancelKeyPress; 255Console.CancelKeyPress -= HandleCancelKeyPress;
Microsoft.DotNet.HotReload.Watch (1)
UI\PhysicalConsole.cs (1)
110Console.CancelKeyPress += (s, e) =>
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
78Console.CancelKeyPress += (_, _) => Environment.Exit(0);
MSBuild (3)
XMake.cs (3)
335Console.CancelKeyPress += Console_CancelKeyPress; 879Console.CancelKeyPress += cancelHandler; 1335Console.CancelKeyPress -= cancelHandler;
MSBuild.Coordinator (1)
Program.cs (1)
32Console.CancelKeyPress += (_, e) =>
rzc (1)
Program.cs (1)
28Console.CancelKeyPress += (sender, e) => { cancel.Cancel(); };
System.CommandLine (2)
Invocation\ProcessTerminationHandler.cs (2)
45Console.CancelKeyPress += OnCancelKeyPress; 60Console.CancelKeyPress -= OnCancelKeyPress;
VBCSCompiler (1)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (1)
37Console.CancelKeyPress += (sender, e) => { cancellationTokenSource.Cancel(); };