Activator.GetObject #216
Replies: 1 comment
|
Hi Christopher, you can use RemotingClient.CreateProxy (the non generic overload): object proxy = _client.CreateProxy(typeof(IService), "serviceName");Or the static variant without the need of having a RemotingClient object: using CoreRemoting.ClassicRemotingApi;
object proxy = RemotingServices.Connect(typeof(IService), "serviceName");This one has an optional third parameter named uniqueClientInstanceName which can be used to specify a CoreRemoting client instance. This is only needed if your client application connects to multiple different CoreRemoting servers. If not specified, the default client instance is used to connect to the remote service. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi guys, firstly let me start by saying what a wonderful job you have done with this.
I would just like to ask, is there any kind of replacement for Activator.GetObject?
All reactions