you don’t have to pass interceptors. It’s a params array that will default to 
empty
-- 
Krzysztof Kozmic
Sent with Airmail

On 15 May 2014 at 7:31:21 pm, Miłosz Kukla ([email protected]) wrote:

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.

-- 
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.

Reply via email to