G
Guest
we know that if the type is registered as singleton in the host side, then
all the remoting clients share one object, like:
host:
=====
TcpServerChannel chn = new TcpServerChannel(9999);
ChannelServices.RegisterChannel(chn,true);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(SomeClass),
"someclass",WellKnownObjectMode.SingleCall);
========
client:
===========
SomeClass a = (SomeClass)Activator.GetObject(typeof(SomeClass),
@"tcp://172.16.64.190:9999/mul");
===========
now that all the remoting clients share one object, is there anyway i can
capture this object shared by the client? or can i just "new" an object and
then register this very object instead of the type of it on the host side so
i can control the state and behavior of it.
thankx
all the remoting clients share one object, like:
host:
=====
TcpServerChannel chn = new TcpServerChannel(9999);
ChannelServices.RegisterChannel(chn,true);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(SomeClass),
"someclass",WellKnownObjectMode.SingleCall);
========
client:
===========
SomeClass a = (SomeClass)Activator.GetObject(typeof(SomeClass),
@"tcp://172.16.64.190:9999/mul");
===========
now that all the remoting clients share one object, is there anyway i can
capture this object shared by the client? or can i just "new" an object and
then register this very object instead of the type of it on the host side so
i can control the state and behavior of it.
thankx