public void SecondInterface () { var restaurant = new SeatedRestaurant (); Bus.Session.Register (path, restaurant); Assert.AreEqual (Bus.Session.RequestName (bus_name), RequestNameReply.PrimaryOwner); try { Assert.AreEqual ("bacon", GetFood (true)); } finally { Bus.Session.ReleaseName (bus_name); Bus.Session.Unregister (path); } }
public void SecondInterface() { var restaurant = new SeatedRestaurant(); Bus.Session.Register(path, restaurant); Assert.AreEqual(Bus.Session.RequestName(bus_name), RequestNameReply.PrimaryOwner); try { Assert.AreEqual("bacon", GetFood(true)); } finally { Bus.Session.ReleaseName(bus_name); Bus.Session.Unregister(path); } }