From 578c5ba80bad9b8073ae6dec3403f884a7ab4e84 Mon Sep 17 00:00:00 2001 From: Weihan Li Date: Sun, 20 Aug 2023 21:40:51 +0800 Subject: [PATCH] style: apply format --- src/WeihanLi.Common/Helpers/InvokeHelper.cs | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/WeihanLi.Common/Helpers/InvokeHelper.cs b/src/WeihanLi.Common/Helpers/InvokeHelper.cs index d0629e65..8968d58f 100644 --- a/src/WeihanLi.Common/Helpers/InvokeHelper.cs +++ b/src/WeihanLi.Common/Helpers/InvokeHelper.cs @@ -102,17 +102,17 @@ public static async Task ProfileAsync(Func 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;