Пример #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");
         Ice.ServantLocator locator = new ServantLocatorI();
         adapter.AddServantLocator(locator, "");
         adapter.Activate();
         serverReady();
         adapter.WaitForDeactivate();
     }
 }