26 references to CancelKeyPress
aspire (1)
Program.cs (1)
654
Console.
CancelKeyPress
+= (sender, eventArgs) =>
dotnet (7)
Commands\MSBuild\MSBuildForwardingApp.cs (1)
128
Console.
CancelKeyPress
+= (sender, e) => { e.Cancel = true; };
Commands\Run\RunCommand.cs (1)
221
Console.
CancelKeyPress
+= (sender, e) => { e.Cancel = true; };
Commands\Test\MTP\CtrlCCancellationManager.cs (2)
46
Console.
CancelKeyPress
+= OnConsoleCancelKeyPress;
170
Console.
CancelKeyPress
-= OnConsoleCancelKeyPress;
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-getdocument (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17
Console.
CancelKeyPress
+= (o, e) =>
dotnet-openapi (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17
Console.
CancelKeyPress
+= (o, e) =>
dotnet-sql-cache (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) =>
GetDocument.Insider (1)
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
17
Console.
CancelKeyPress
+= (o, e) =>
Microsoft.DotNet.Cli.Utils (2)
ProcessReaper.cs (2)
208
Console.
CancelKeyPress
+= HandleCancelKeyPress;
218
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;
684
Console.
CancelKeyPress
+= cancelHandler;
1087
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(); };