0

I have this code:

container.Register(
    Component.For(typeof(MyServiceInterceptor<>)),
    Component.For<IMyService<string>, MyServiceImpl<string>>()
        .Interceptors(typeof(MyServiceInterceptor<>))
        .Anywhere
)

Windsor generates proxy class for MyServiceImpl<>. But I want to intercept only IMyService<> methods. How to do it?

Dmitriy Startsev
  • 1,442
  • 10
  • 19

0 Answers0