static void Main() { Console.Title = "CLIENT"; IInterface proxy = ChannelFactory <IInterface> .CreateChannel( new BasicHttpBinding(), new EndpointAddress("http://localhost:7787/IInterface")); // IInterface chanel = chanel.Add() //ChannelFactory<IInterface> proxy = new ChannelFactory<IInterface>(new BasicHttpBinding(), // new EndpointAddress("http://localhost:7787/IInterface")); //IInterface chanel = proxy.CreateChannel(); using (proxy as IDisposable) { int i = proxy.Add(2, 3); Console.WriteLine(i); //double d = proxy.Add(2.7, 9.3); //Console.WriteLine(d); } // Задержка. Console.ReadKey(); }