static void TestOneWay() { // NOTE it's really good to test the IsOneWay functionality, it works, as expected! InstanceContext ctx = new InstanceContext(new CalculatorCallBack()); EchoClient echo = new EchoClient(ctx); Console.WriteLine("start to call SayHello...{0}", DateTime.Now); echo.SayHello("scotty"); Console.WriteLine("end of calling SayHello...{0}", DateTime.Now); }
static void TestCallback() { InstanceContext ctx = new InstanceContext(new CalculatorCallBack()); EchoClient client = new EchoClient(ctx); client.SayHello("scotty & juicy"); }