How can I find out if the proxy server instance is MarshalByRef?

I know that there is a way, I know that I have done this (a long time) before, but I cannot remember or learn how to do it.

var otherDomain = AppDomain.Create("Lol my memory sucks"); var myRemotableType = typeof(MyTypeThatExtendsMBRO); var proxy = otherDomain .CreateInstanceAndUnwrap( type.Assembly.FullName, type.FullName); // how do you do this next step??? bool isProxy = IsYouIsOrIsYouAintAProxy(proxy); 
+4
source share
1 answer

I think you are looking for the RemotingServices.IsTransparentProxy() method.

+5
source

Source: https://habr.com/ru/post/1304475/


All Articles