示例#1
0
        static void Main(string[] args)
        {
            InstanceContext instanceContext = new InstanceContext(new CallBackHandler());

            CalculatorServiceClient client = new CalculatorServiceClient(instanceContext);

            client.AddTo(5D);
            client.SubstractFrom(3D);
            client.MultiplyBy(12D);
            client.DivideBy(2D);

            client.Clear();
            Console.ReadLine();
            client.Close();

            Console.WriteLine("Terminado");
            Console.ReadKey();
        }