I just got this test pass:
[Test]
public void BasicCase()
{
ProxyGenerationOptions options = new ProxyGenerationOptions();
options.Selector = new AllInterceptorSelector();
var target = this.generator.CreateInterfaceProxyWithTarget(
typeof(ISimpleInterface),
new SimpleClass(),
options,
new NoopInterceptor() ) as ISimpleInterface;
Assert.IsNotNull( target );
target.Do();
}
And here’s how Do proxy method looks like in Reflector:
Comments
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.