public static void Main () { Ice.IceChannel ic = new Ice.IceChannel (); ChannelServices.RegisterChannel (ic); HelloDispatcher hd = (HelloDispatcher) Activator.GetObject (typeof (HelloDispatcher), "ice://localhost:10000/hellodispatcher"); HelloReceiverI hr = new HelloReceiverI(); RemotingServices.Marshal (hr, "asdf"); hd.tellHello (hr, "proxying"); }
public static void Main() { Ice.IceChannel ic = new Ice.IceChannel(); ChannelServices.RegisterChannel(ic); HelloDispatcher hd = (HelloDispatcher)Activator.GetObject(typeof(HelloDispatcher), "ice://localhost:10000/hellodispatcher"); HelloReceiverI hr = new HelloReceiverI(); RemotingServices.Marshal(hr, "asdf"); hd.tellHello(hr, "proxying"); }