From 9eeca6aa905cffea1c95d965b4790fbd20ce2275 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期五, 25 十月 2024 16:19:16 +0800
Subject: [PATCH] 更新字典数据获取
---
WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs
index ef2c23c..9ee515d 100644
--- a/WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs
+++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/AOP/LogAOP.cs
@@ -27,7 +27,6 @@
_accessor = accessor;
}
-
/// <summary>
/// 瀹炰緥鍖朓Interceptor鍞竴鏂规硶
/// </summary>
@@ -38,7 +37,7 @@
string json;
try
{
- if(invocation.Arguments.Any())
+ if (invocation.Arguments.Any())
{
json = JsonConvert.SerializeObject(invocation.Arguments);
}
@@ -136,7 +135,6 @@
apiLogAopInfo.ResponseIntervalTime = ResponseTime + "ms";
apiLogAopInfo.ResponseJsonData = JsonConvert.SerializeObject(o);
-
await Task.Run(() =>
{
Parallel.For(0, 1, e =>
@@ -171,10 +169,7 @@
public static bool IsAsyncMethod(MethodInfo method)
{
- return
- method.ReturnType == typeof(Task) ||
- method.ReturnType.IsGenericType && method.ReturnType.GetGenericTypeDefinition() == typeof(Task<>)
- ;
+ return method.ReturnType == typeof(Task) || method.ReturnType.IsGenericType && method.ReturnType.GetGenericTypeDefinition() == typeof(Task<>);
}
}
@@ -225,7 +220,7 @@
Func<object, Task> action, Action<Exception> finalAction)
{
return typeof(InternalAsyncHelper)
- .GetMethod("AwaitTaskWithPostActionAndFinallyAndGetResult", BindingFlags.Public | BindingFlags.Static)
+ .GetMethod(nameof(AwaitTaskWithPostActionAndFinallyAndGetResult), BindingFlags.Public | BindingFlags.Static)
.MakeGenericMethod(taskReturnType)
.Invoke(null, new object[] { actualReturnValue, action, finalAction });
}
@@ -256,7 +251,7 @@
/// <summary>
/// 璇锋眰鍙傛暟鏁版嵁JSON
/// </summary>
- [Description("璇锋眰鍙傛暟鏁版嵁JSON")]
+ [Description("璇锋眰鍙傛暟鏁版嵁JSON")]
public string RequestParamsData { get; set; } = string.Empty;
/// <summary>
/// 璇锋眰鍝嶅簲闂撮殧鏃堕棿
--
Gitblit v1.9.3