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");
ChannelServices.RegisterChannel(new TcpChannel(0));
object obj = Activator.GetObject(typeof(MyObj), "tcp://serverName:1234/RemoteObj", "myCustomData");
Server side:Access the string "myCustomData".
, , , -, , . Activator.GetObject Reflector , IChannelSender.CreateMessageSink. .
Activator.GetObject
IChannelSender.CreateMessageSink
, IChannelSender: CrossAppDomainChannel. , : CrossAppDomainData. , , , .
IChannelSender
CrossAppDomainChannel
CrossAppDomainData
Source: https://habr.com/ru/post/1721187/More articles:boost spirit 2.x: how to work with keywords and identifiers? - c ++SysCache2 configuration with free NHibernate - fluent-nhibernateSharePoint How to create a folder in a document library using web services. - wssAre there problems optimizing the consistency / loss of data / queries that I read about "what's bad"? - mysqlRecord the time taken by each task when starting the msbuild assembly - msbuildsqlite recommendations for a database queue - sqliteBuilt-in PDF overlapping menu in FireFox - htmlWhy does Visual Studio 2010 have problems rendering with VMware? - windows-xpMoving git repository to another server - gitWhat is the delay in TCP / UDP? - udpAll Articles