21 references to CancelKeyPress
aspire (1)
Program.cs (1)
654
Console.
CancelKeyPress
+= (sender, eventArgs) =>
dotnet (6)
Commands\MSBuild\MSBuildForwardingApp.cs (1)
89
Console.
CancelKeyPress
+= (sender, e) => { e.Cancel = true; };
Commands\Run\RunCommand.cs (1)
221
Console.
CancelKeyPress
+= (sender, e) => { e.Cancel = true; };
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
103
Console.
CancelKeyPress
+= (s, e) =>
Commands\Test\MTP\Terminal\SystemConsole.cs (2)
41
add => Console.
CancelKeyPress
+= value;
42
remove => Console.
CancelKeyPress
-= value;
NuGetForwardingApp.cs (1)
26
Console.
CancelKeyPress
+= (sender, e) => { e.Cancel = true; };
dotnet-dev-certs (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17
Console.
CancelKeyPress
+= (o, e) =>
dotnet-user-jwts (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17
Console.
CancelKeyPress
+= (o, e) =>
dotnet-user-secrets (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17
Console.
CancelKeyPress
+= (o, e) =>
Microsoft.DotNet.Cli.Utils (2)
ProcessReaper.cs (2)
213
Console.
CancelKeyPress
+= HandleCancelKeyPress;
223
Console.
CancelKeyPress
-= HandleCancelKeyPress;
Microsoft.DotNet.HotReload.Watch (1)
UI\PhysicalConsole.cs (1)
110
Console.
CancelKeyPress
+= (s, e) =>
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
78
Console.
CancelKeyPress
+= (_, _) => Environment.Exit(0);
MSBuild (3)
XMake.cs (3)
318
Console.
CancelKeyPress
+= Console_CancelKeyPress;
678
Console.
CancelKeyPress
+= cancelHandler;
1081
Console.
CancelKeyPress
-= cancelHandler;
rzc (1)
Program.cs (1)
28
Console.
CancelKeyPress
+= (sender, e) => { cancel.Cancel(); };
System.CommandLine (2)
Invocation\ProcessTerminationHandler.cs (2)
45
Console.
CancelKeyPress
+= OnCancelKeyPress;
60
Console.
CancelKeyPress
-= OnCancelKeyPress;
VBCSCompiler (1)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (1)
37
Console.
CancelKeyPress
+= (sender, e) => { cancellationTokenSource.Cancel(); };