You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the proxy will always have it's own method Test (no matter what the return value from an IProxyGenerationHook is).
Then I tried to intercept this method as well and pass the arguments to the base class, but I'm not able to do that in an easy way (I think from here it's quite the same as #647).
So my question is: is there a way to filter the methods that have to be generated by the proxy builder (at least on those methods that are already defined by BaseTypeForInterfaceProxy)?
Another solution would be to modify the generated proxy code to something like
I want to create a proxy from an interface where some methods are already defined by a base class.
E.g.
My proxy should look like that (without
Test
).But the proxy will always have it's own method
Test
(no matter what the return value from anIProxyGenerationHook
is).Then I tried to intercept this method as well and pass the arguments to the base class, but I'm not able to do that in an easy way (I think from here it's quite the same as #647).
So my question is: is there a way to filter the methods that have to be generated by the proxy builder (at least on those methods that are already defined by
BaseTypeForInterfaceProxy
)?Another solution would be to modify the generated proxy code to something like
whenever
Test
should not be intercepted as ofIProxyGenerationHook
and there is such a method in one of the base types.Is there a way to hook into the generation process (with more possibilities than now)?
The text was updated successfully, but these errors were encountered: