我一直在玩弄统一做一些AOP的东西,通过国际奥委会一样设置:团结IOC,AOP及接口拦截
ioc.RegisterType<ICustomerService, CustomerService>()
.Configure<Interception>().SetInterceptorFor<ICustomerService>(new InterfaceInterceptor());
...然后有对ICustomerService接口的方法的ICallHandler 。暂时我想要调用的方法,它所在的类以及该类的命名空间。所以......里面......
public IMethodReturn Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext)
...的ICallHandler的方法,我可以通过input.MethodBase.Name访问方法的名称...如果我使用input.MethodBase.DeclaringType.Name我获取接口ICustomerService ...但...我将如何去实现类“CustomerService”而不是接口?
我被告知要使用input.Target ..但刚刚返回“DynamicModule.ns.Wrapped_ICustomerService_4f2242e5e00640ab84e4bc9e05ba0a13”
这个人任何帮助吗?