服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
9 天以前 beca28ecb3a730ffb33c21e0c55c729774725faf
Tiger.IBusiness/Extensions/ResultExtension.cs
@@ -17,7 +17,7 @@
        public static Result<T> CatchExceptionWithLog<T>(this Result<T> result, Exception ex, Locale localeMsg)
        {
            result.CatchExceptionWithLog(ex, localeMsg);
            result.CatchException(ex, localeMsg);
            Logger.Default.Fatal(ex, localeMsg.Default());
            return result;
        }
@@ -30,7 +30,7 @@
        public static Result<T> CatchExceptionWithLog<T>(this Result<T> result, Exception ex, string msg = null)
        {
            result.CatchExceptionWithLog(ex, msg);
            result.CatchException(ex, msg);
            Logger.Default.Fatal(ex, msg);
            return result;
        }
@@ -43,7 +43,7 @@
        public static Result CatchExceptionWithLog(this Result result, Exception ex, Locale localeMsg)
        {
            result.CatchExceptionWithLog(ex, localeMsg);
            result.CatchException(ex, localeMsg);
            Logger.Default.Fatal(ex, localeMsg.Default());
            return result;
        }
@@ -56,7 +56,7 @@
        public static Result CatchExceptionWithLog(this Result result, Exception ex, string msg = null)
        {
            result.CatchExceptionWithLog(ex, msg);
            result.CatchException(ex, msg);
            Logger.Default.Fatal(ex, msg);
            return result;
        }