Hi Krzysztof,
Thanks for the answer. Could you please demonstrate how to create mixin
without target class?
I tried something like that but that doesn't work:
interface IFoo { int Dong1(); }
interface IBar { int Dong2(); }
interface IFooBar : IFoo, IBar { }
class Foo : IFoo { public int Dong1() { return 1; } }
class Bar : IBar { public int Dong2() { return 1; } }
var options = new ProxyGenerationOptions();
options.AddMixinInstance(new Foo());
options.AddMixinInstance(new Bar());
new ProxyGenerator().CreateInterfaceProxyWithoutTarget<IFooBar>(options,
???)
//interceptor has nothing to do here, should it be dummy IInterceptor
implementation?
Best,
Milosz
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.