21 references to CancelKeyPress
aspire (1)
Program.cs (1)
654Console.CancelKeyPress += (sender, eventArgs) =>
dotnet (6)
Commands\MSBuild\MSBuildForwardingApp.cs (1)
89Console.CancelKeyPress += (sender, e) => { e.Cancel = true; };
Commands\Run\RunCommand.cs (1)
221Console.CancelKeyPress += (sender, e) => { e.Cancel = true; };
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
103Console.CancelKeyPress += (s, e) =>
Commands\Test\MTP\Terminal\SystemConsole.cs (2)
41add => Console.CancelKeyPress += value; 42remove => Console.CancelKeyPress -= value;
NuGetForwardingApp.cs (1)
26Console.CancelKeyPress += (sender, e) => { e.Cancel = true; };
dotnet-dev-certs (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) =>
Microsoft.DotNet.Cli.Utils (2)
ProcessReaper.cs (2)
213Console.CancelKeyPress += HandleCancelKeyPress; 223Console.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)
318Console.CancelKeyPress += Console_CancelKeyPress; 678Console.CancelKeyPress += cancelHandler; 1081Console.CancelKeyPress -= cancelHandler;
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(); };