有遇到过的吗?
我想不适用接口,要怎么处理。
builder.RegisterType<TestService>().InterceptedBy(typeof(TransactionInterceptor)).EnableClassInterceptors();//无效
builder.RegisterType<TestService>().As<ITestService>().InterceptedBy(typeof(TransactionInterceptor)).EnableInterfaceInterceptors();//有效
builder.Register(c => new CallLogger(Console.Out)) .Named<IInterceptor>("log-calls");
https://autofaccn.readthedocs.io/en/latest/advanced/interceptors.html
public virtual