示例#1
0
        static void Main(string[] args)
        {
            InstanceContext instanceContext = new InstanceContext(new CalculatorCallBack());
            CalculatorClient client = new CalculatorClient(instanceContext);
            client.AddTo(100.00D);
            client.SubtractTo(50.0D);
            client.MultipleTo(17.0D);
            client.DivideTo(2.0D);
            client.Clear();
            Console.WriteLine("Press <Enter> to close");
            Console.ReadLine();

            client.Close();

        }