Castle DynamicProxy IInterceptorSelector implementation

I just got this test pass:

public void BasicCase()
    ProxyGenerationOptions options = new ProxyGenerationOptions();
    options.Selector = new AllInterceptorSelector();
    var target = this.generator.CreateInterfaceProxyWithTarget(
        new SimpleClass(),
        new NoopInterceptor() ) as ISimpleInterface;
    Assert.IsNotNull( target );

And here’s how Do proxy method looks like in Reflector:


  • Tun oksoz

    Cool! How would you add that to the services resolved? Any idea on that yet?

  • No, I haven’t thought about the configuration yet. I want to make it work first, then think about the rest.