The clr.Convert(TransparentProxy, IServerInterface) is failing with same
exception
I will code a C# wrapper but what does it mean? A client side assembly
that will get the transparent proxy and convert it to the Interface type
I need?
Tsahi Muyal
Corporate Platform Group(CPG)
KLA-Tencor Isr
The C# wrapper could be as simple as:
public static class MyWrapper {
public static void IServerInterfaceMethod(object o) {
((IServerInterface)o).IServerInterfaceMethod();
}
}
Used like:
MyWrapper.IServerInterfaceMethod(TransparentP
I tried using typedproxy class
Not sure I am using it the right way
This is what I did
test = typedproxy(TransparentProxy, IServerInterface)
test.IServerInterfaceMethod()
This call is failing with "Expected IServerInterface, got
MarshalByRefObject"
I debugged the code to find o
Hurm, maybe this is a different problem then... Does:
import clr
clr.Convert(TransparentProxy, IServerInterface).IServerInterfaceMethod()
work?
If not then my guess is you might need a C# wrapper :(
From: Muyal,Tsahi [mailto:[email protected]]
Sent: Tuesday, October 11, 2011 2:39 PM
T
I'm not quite certain this is the same issue but you should try using the
wrapper from this thread:
http://lists.ironpython.com/pipermail/users-ironpython.com/2006-September/003549.html
The transparent proxies always succeed when casting them to an interface type
so it's hard for us to work w/