我有这段代码:
container.Register(
Component.For(typeof(MyServiceInterceptor<>)),
Component.For<IMyService<string>, MyServiceImpl<string>>()
.Interceptors(typeof(MyServiceInterceptor<>))
.Anywhere
)
Windsor为MyServiceImpl&lt;&gt;生成代理类。但是我想只拦截IMyService&lt;&gt;方法。怎么做?