예제 #1
0
 /// <summary>
 /// 处理系统异常
 /// </summary>
 /// <param name="ex">异常对象</param>
 public static void HandleException(Exception ex)
 {
     BusHelper.HandleException(ex);
 }
        public override void OnActionExecuted(IInvocation invocation)
        {
            string names = string.Join(",", _deleteList.Select(x => x.GetPropertyValue(_nameField)?.ToString()));

            BusHelper.WriteSysLog($"删除{_dataName}:{names}", _logType, _deleteList.ToJson());
        }
예제 #3
0
 /// <summary>
 /// 写入日志
 /// </summary>
 /// <param name="logContent">日志内容</param>
 /// <param name="logType">日志类型</param>
 public static void WriteSysLog(string logContent, EnumType.LogType logType)
 {
     BusHelper.WriteSysLog(logContent, logType);
 }
        public override void OnActionExecuted(IInvocation invocation)
        {
            var obj = invocation.Arguments[0];

            BusHelper.WriteSysLog($"修改{_dataName}:{obj.GetPropertyValue(_nameField)?.ToString()}", _logType);
        }