Activator.GetObject - using a state parameter

In .NET Remoting, the Activator.GetObject method has a state parameter. What is the purpose of this condition? Is it possible to get its value from the server side?

mdsn nothing helped.

What I would like to do:
Client side:
ChannelServices.RegisterChannel(new TcpChannel(0));
object obj = Activator.GetObject(typeof(MyObj), "tcp://serverName:1234/RemoteObj", "myCustomData");

Server side:
Access the string "myCustomData".

+3
source share
1 answer

, , , -, , . Activator.GetObject Reflector , IChannelSender.CreateMessageSink. .

, IChannelSender: CrossAppDomainChannel. , : CrossAppDomainData. , , , .

+2

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


All Articles