From 9811daeae3cbb29a5bff69534a87e22b10c0a3e5 Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期三, 18 十二月 2024 09:07:44 +0800 Subject: [PATCH] 更新代码 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/AOP/LogAOP.cs | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/AOP/LogAOP.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/AOP/LogAOP.cs" index 420633f..1e80595 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/AOP/LogAOP.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/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)) { -- Gitblit v1.9.3