摘要:ServiceHost client = new ServiceHost(typeof(WebApplication1.Service1)); client.Open(); using (ChannelFactory<IService1> factory = new ChannelFactory<IService1>("Service1")) { IService1 client1=factory.CreateChannel(); Label1.Text = client1.DoWork(); } client.Close();
阅读全文