From d0f01f571918ae942349068776fa7fb70f3ab5cd Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期三, 28 八月 2024 16:20:18 +0800
Subject: [PATCH] 更新设备信息表从表导入问题

---
 WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs |   33 ---------------------------------
 1 files changed, 0 insertions(+), 33 deletions(-)

diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs
index 6b22f40..ef2c23c 100644
--- a/WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs
+++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs
@@ -73,9 +73,6 @@
                 // 寮傛鑾峰彇寮傚父锛屽厛鎵ц
                 if (IsAsyncMethod(invocation.Method))
                 {
-                    #region 鏂规涓�
-
-                    //Wait task execution and modify return value
                     if (invocation.Method.ReturnType == typeof(Task))
                     {
                         invocation.ReturnValue = InternalAsyncHelper.AwaitTaskWithPostActionAndFinally(
@@ -86,45 +83,17 @@
                                 LogEx(ex, apiLogAopInfo);
                             });
                     }
-                    //Task<TResult>
                     else
                     {
                         invocation.ReturnValue = InternalAsyncHelper.CallAwaitTaskWithPostActionAndFinallyAndGetResult(
                             invocation.Method.ReturnType.GenericTypeArguments[0],
                             invocation.ReturnValue,
-                            //async () => await SuccessAction(invocation, dataIntercept),/*鎴愬姛鏃舵墽琛�*/
                             async (o) => await SuccessAction(invocation, apiLogAopInfo, startTime, o), /*鎴愬姛鏃舵墽琛�*/
                             ex =>
                             {
                                 LogEx(ex, apiLogAopInfo);
                             });
                     }
-
-                    #endregion
-
-
-                    // 濡傛灉鏂规涓�涓嶈锛岃瘯璇曡繖涓柟妗�
-                    //#region 鏂规浜�
-
-                    //var type = invocation.Method.ReturnType;
-                    //var resultProperty = type.GetProperty("Result");
-                    //DateTime endTime = DateTime.Now;
-                    //string ResponseTime = (endTime - startTime).Milliseconds.ToString();
-                    //apiLogAopInfo.ResponseTime = endTime.ToString("yyyy-MM-dd hh:mm:ss fff");
-                    //apiLogAopInfo.ResponseIntervalTime = ResponseTime + "ms";
-                    //apiLogAopInfo.ResponseJsonData = JsonConvert.SerializeObject(resultProperty.GetValue(invocation.ReturnValue));
-
-                    ////dataIntercept += ($"銆愬搷搴旀椂闂淬�戯細{ResponseTime}ms\r\n");
-                    ////dataIntercept += ($"銆愭墽琛屽畬鎴愭椂闂淬�戯細{endTime.ToString("yyyy-MM-dd hh:mm:ss fff")}\r\n");
-                    ////dataIntercept += ($"銆愭墽琛屽畬鎴愮粨鏋溿�戯細{JsonConvert.SerializeObject(resultProperty.GetValue(invocation.ReturnValue))}\r\n");
-
-                    //Parallel.For(0, 1, e =>
-                    //{
-                    //    //LogLock.OutLogAOP("AOPLog", new string[] { dataIntercept });
-                    //    LogLock.OutLogAOP("AOPLog", new string[] { apiLogAopInfo.GetType().ToString() + " - ResponseJsonDataType:" + type, JsonConvert.SerializeObject(apiLogAopInfo) });
-                    //});
-
-                    //#endregion
                 }
                 else
                 {
@@ -157,7 +126,6 @@
                 LogEx(ex, apiLogAopInfo);
                 throw;
             }
-
         }
 
         private async Task SuccessAction(IInvocation invocation, AOPLogInfo apiLogAopInfo, DateTime startTime, object o = null)
@@ -173,7 +141,6 @@
             {
                 Parallel.For(0, 1, e =>
                 {
-                    //LogLock.OutSql2Log("AOPLog", new string[] { JsonConvert.SerializeObject(apiLogAopInfo) });
                     LogLock.OutLogAOP("AOPLog", new string[] { apiLogAopInfo.GetType().ToString(), JsonConvert.SerializeObject(apiLogAopInfo) });
                 });
             });

--
Gitblit v1.9.3