使用RemotingServices.Marshal方法吧,能把你的机器上面的实体共享出去,具体用法看msdn,不过我记得用法跟singleton差不多,]
下面是msdn的例子,
TcpChannel channel = new TcpChannel(9000);
ChannelServices.RegisterChannel(channel);SampleWellKnown objectWellKnown = new SampleWellKnown();// After the channel is registered, the object needs to be registered
// with the remoting infrastructure.  So, Marshal is called.
ObjRef objrefWellKnown = RemotingServices.Marshal(objectWellKnown, "objectWellKnownUri");
Console.WriteLine("An instance of SampleWellKnown type is published at {0}.", objrefWellKnown.URI);Console.WriteLine("Press enter to unregister SampleWellKnown, so that it is no longer available on this channel.");
Console.ReadLine();
RemotingServices.Disconnect(objectWellKnown);Console.WriteLine("Press enter to end the server process.");
Console.ReadLine();