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();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2021-05-27
  • 2021-07-11
  • 2021-12-05
  • 2022-12-23
  • 2022-02-06
猜你喜欢
  • 2021-11-03
  • 2021-09-21
  • 2021-08-08
  • 2022-02-04
  • 2021-12-01
相关资源
相似解决方案