(精华)2020年6月27日 C#类库 IAOPContext(Castle-AOP的封装)

106 阅读1分钟
using System;
using System.Reflection;

namespace Core.Util
{
    public interface IAOPContext
    {
        IServiceProvider ServiceProvider { get; }
        object[] Arguments { get; }
        Type[] GenericArguments { get; }
        MethodInfo Method { get; }
        MethodInfo MethodInvocationTarget { get; }
        object Proxy { get; }
        object ReturnValue { get; set; }
        Type TargetType { get; }
        object InvocationTarget { get; }
    }
}