You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
734 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Unity.Interception.PolicyInjection.Pipeline;
namespace Txgy.EWS.Client.Log.Aop.Attributes
{
public class LogBeforeHandler : ICallHandler
{
LogHelper LogHelper = new LogHelper();
public int Order { get; set; }
public IMethodReturn Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext)
{
IMethodReturn methodReturn = null;
// 保存日志
LogHelper.Debug(input.Target, "LogBeforeHandler Hello");
methodReturn = getNext().Invoke(input, getNext);// 方法体
return methodReturn;
}
}
}