Groups | Blog | Home
all groups > dotnet remoting > april 2008 >

dotnet remoting : Are Activator/Remoting Proxies Thread-Safe?


Jules Winfield
4/4/2008 10:18:40 AM
I have a singleton object that's accessed via remoting by way of
Activator.GetObject():

SomeObject
someObj=(SomeObject)Activator.GetObject(typeof(SomeObject),someUrl);

My question is: Is the proxy returned by Activator.GetObject() thread-safe?
I know that my IMPLEMENTATION of SomeObject has been built in a thread-safe
way -- but is the PROXY generated by GetObject() thread-safe?

In other words, if I create the 'someObj' proxy at startup, can I safely
make method calls against it from multiple threads?

Thanks,

Jules

AddThis Social Bookmark Button