IMethodInvocation.Proxy

Topics: Development Team Discussion, User Discussion
Coordinator
Aug 16, 2007 at 4:30 PM
Within a CallHandler, I need to access the proxy that caused the CallHandler chain to be called.

I thought adding a Proxy getter property on IMethodInvocation would make lots of sense.

InterceptingRealProxy could pass this when creating the RemotingMethodInvocation instance.
Developer
Aug 16, 2007 at 5:07 PM
Same remark as before: it is specific to the implementation that uses remoting proxies.

Why would you need to access the proxy? I wonder what is your use case...

Gael
Coordinator
Aug 16, 2007 at 5:31 PM
Yeah both posts were related.

That was before I took your comment regarding the "Invocation Context" into account. I'm about to check-in some code for a ThreadSafeCallHandler. You'll be able to see what I came up with finally.