hutongqing
2024-11-26 2c213d4f6543a66845ac5d2bc13eaf06d1033eb6
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/AOP/LogAOP.cs
@@ -10,13 +10,14 @@
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
using WIDESEA_Core.Helper;
using WIDESEA_Core.LogHelper;
namespace WIDESEA_Core.AOP
{
    /// <summary>
   /// 鎷︽埅鍣˙logLogAOP 缁ф壙IInterceptor鎺ュ彛
   /// 鎷︽埅鍣↙ogAOP 缁ф壙IInterceptor鎺ュ彛
   /// </summary>
   public class LogAOP : IInterceptor
    {
@@ -66,9 +67,17 @@
            try
            {
                MiniProfiler.Current.Step($"鎵ц{invocation.InvocationTarget}.{invocation.Method.Name}()鏂规硶 -> ");
                //MethodParamsValidateAttribute? paramsValidateAttribute = invocation.Method.GetCustomAttribute<MethodParamsValidateAttribute>();
                //if (paramsValidateAttribute != null)
                //{
                //    foreach (var item in invocation.Arguments)
                //    {
                //    }
                //}
                //鍦ㄨ鎷︽埅鐨勬柟娉曟墽琛屽畬姣曞悗 缁х画鎵ц褰撳墠鏂规硶锛屾敞鎰忔槸琚嫤鎴殑鏄紓姝ョ殑
                invocation.Proceed();
                // 寮傛鑾峰彇寮傚父锛屽厛鎵ц
                if (IsAsyncMethod(invocation.Method))
                {