Beispiel #1
0
    public override void run(string[] args)
    {
        using var communicator = initialize(ref args);
        communicator.SetProperty("TestAdapter.Endpoints", getTestEndpoint(0));
        Ice.ObjectAdapter adapter = communicator.CreateObjectAdapter("TestAdapter");
        BlobjectI         blob    = new BlobjectI();

        adapter.AddDefaultServant(blob, "");
        adapter.Add(new Echo(), "__echo");
        adapter.Activate();
        communicator.WaitForShutdown();
    }
Beispiel #2
0
 public override void run(string[] args)
 {
     using (var communicator = initialize(ref args))
     {
         communicator.SetProperty("TestAdapter.Endpoints", getTestEndpoint(0));
         Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
         BlobjectI         blob    = new BlobjectI();
         adapter.AddDefaultServant((incoming, current) => blob.Dispatch(incoming, current), "");
         adapter.Add(new EchoI(blob), "__echo");
         adapter.Activate();
         communicator.waitForShutdown();
     }
 }