Skip to content

Commit

Permalink
style: apply format
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Aug 20, 2023
1 parent 2f0732b commit 578c5ba
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/WeihanLi.Common/Helpers/InvokeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ public static async Task<double> ProfileAsync<T1, T2, T3>(Func<T1, T2, T3, Task>
private static void InvokeExitHandler(object? sender, EventArgs? args)
{
if (_exited) return;
// no need to configure since we're going to exit
// if (args is ConsoleCancelEventArgs consoleCancelEventArgs)
// {
// consoleCancelEventArgs.Cancel = true;
// }
// #if NET6_0_OR_GREATER
// if (sender is PosixSignalContext posixSignalContext)
// {
// posixSignalContext.Cancel = true;
// }
// #endif
// no need to configure since we're going to exit
// if (args is ConsoleCancelEventArgs consoleCancelEventArgs)
// {
// consoleCancelEventArgs.Cancel = true;
// }
// #if NET6_0_OR_GREATER
// if (sender is PosixSignalContext posixSignalContext)
// {
// posixSignalContext.Cancel = true;
// }
// #endif
lock (_exitLock)
{
if (_exited) return;
Expand Down

0 comments on commit 578c5ba

Please sign in to comment.