摘要:
配置文件: 输出代码:ServiceHost host = new ServiceHost(typeof(Calculator));foreach (ServiceEndpoint p in host.Description.Endpoints){ Console.WriteLine("契约:"+p.Contract.Name); Console.WriteLine("绑定:" + p.Binding.Name); Console.WriteLine("地址:" + p.Address.Uri.AbsoluteUri); Consol 阅读全文
posted @ 2013-07-28 17:58 cbtech 阅读(253) 评论(1) 推荐(0) 编辑