예제 #1
0
파일: hello-cb.cs 프로젝트: emtees/old-code
  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");
  }
예제 #2
0
    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");
    }