I have three interfaces :
-IA
-IB
-IC : IA, IB --> (IC inherit IA and IB)
The target is an implementation of "IA" and I want the proxy implements
IC and IB of course.
proxyGenerator.CreateInterfaceProxyWithTargetInterface(typeof(IA),
new[] { typeof(IC) },
//Aditional interfaces.
anInstanceImplementingIA, options,
new[] { new SampleInterceptor() });
The problem; If I do it in this way calls to members of "IA" never
reached the target.
The InvocationTarget of those members is the Proxy, instead
"anInstanceImplementingIA".
Thanks.
Krzysztof Koźmic escribió: