From 3085bd0f3f6d983f4898d2e8b7a81a0e851ed8a7 Mon Sep 17 00:00:00 2001 From: "David P.G" Date: Tue, 8 Jul 2025 12:35:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E8=8A=82=E6=B5=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/NlogHelper.cs | 8 ++++---- Helper/NotificationHelper.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Helper/NlogHelper.cs b/Helper/NlogHelper.cs index 2341b38..ed474a3 100644 --- a/Helper/NlogHelper.cs +++ b/Helper/NlogHelper.cs @@ -174,7 +174,7 @@ public static class NlogHelper /// 自动捕获:调用此方法的源文件完整路径。 /// 自动捕获:调用此方法的成员或属性名称。 /// 自动捕获:调用此方法的行号。 - public static void Error(string msg, Exception exception = null, bool throttle = false, + public static void Error(string msg, Exception exception = null, bool throttle = true, [CallerFilePath] string callerFilePath = "", [CallerMemberName] string callerMember = "", [CallerLineNumber] int callerLineNumber = 0) @@ -190,7 +190,7 @@ public static class NlogHelper /// 自动捕获:调用此方法的源文件完整路径。 /// 自动捕获:调用此方法的成员或属性名称。 /// 自动捕获:调用此方法的行号。 - public static void Info(string msg, bool throttle = false, + public static void Info(string msg, bool throttle = true, [CallerFilePath] string callerFilePath = "", [CallerMemberName] string callerMember = "", [CallerLineNumber] int callerLineNumber = 0) @@ -206,7 +206,7 @@ public static class NlogHelper /// 自动捕获:调用此方法的源文件完整路径。 /// 自动捕获:调用此方法的成员或属性名称。 /// 自动捕获:调用此方法的行号。 - public static void Warn(string msg, bool throttle = false, + public static void Warn(string msg, bool throttle = true, [CallerFilePath] string callerFilePath = "", [CallerMemberName] string callerMember = "", [CallerLineNumber] int callerLineNumber = 0) @@ -222,7 +222,7 @@ public static class NlogHelper /// 自动捕获:调用此方法的源文件完整路径。 /// 自动捕获:调用此方法的成员或属性名称。 /// 自动捕获:调用此方法的行号。 - public static void Trace(string msg, bool throttle = false, + public static void Trace(string msg, bool throttle = true, [CallerFilePath] string callerFilePath = "", [CallerMemberName] string callerMember = "", [CallerLineNumber] int callerLineNumber = 0) diff --git a/Helper/NotificationHelper.cs b/Helper/NotificationHelper.cs index b592e2e..81cf43c 100644 --- a/Helper/NotificationHelper.cs +++ b/Helper/NotificationHelper.cs @@ -99,7 +99,7 @@ public static class NotificationHelper /// 是否启用通知节流。 /// 自动捕获:调用此方法的源文件完整路径。 /// 自动捕获:调用此方法的行号。 - public static void ShowMessage(string msg, NotificationType notificationType = NotificationType.Info, bool throttle = false, + public static void ShowMessage(string msg, NotificationType notificationType = NotificationType.Info, bool throttle = true, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0) { @@ -115,7 +115,7 @@ public static class NotificationHelper /// 自动捕获:调用此方法的源文件完整路径。 /// 自动捕获:调用此方法的成员或属性名称。 /// 自动捕获:调用此方法的行号。 - public static void ShowError(string msg, Exception exception = null, bool throttle = false, + public static void ShowError(string msg, Exception exception = null, bool throttle = true, [CallerFilePath] string callerFilePath = "", [CallerMemberName] string callerMember = "", [CallerLineNumber] int callerLineNumber = 0) @@ -131,7 +131,7 @@ public static class NotificationHelper /// 自动捕获:调用此方法的源文件完整路径。 /// 自动捕获:调用此方法的成员或属性名称。 /// 自动捕获:调用此方法的行号。 - public static void ShowSuccess(string msg, bool throttle = false, + public static void ShowSuccess(string msg, bool throttle = true, [CallerFilePath] string callerFilePath = "", [CallerMemberName] string callerMember = "", [CallerLineNumber] int callerLineNumber = 0) @@ -147,7 +147,7 @@ public static class NotificationHelper /// 自动捕获:调用此方法的源文件完整路径。 /// 自动捕获:调用此方法的成员或属性名称。 /// 自动捕获:调用此方法的行号。 - public static void ShowInfo(string msg, bool throttle = false, + public static void ShowInfo(string msg, bool throttle = true, [CallerFilePath] string callerFilePath = "", [CallerMemberName] string callerMember = "", [CallerLineNumber] int callerLineNumber = 0)