
static void Main(string[] args) { using(ServiceHost ser=new ServiceHost (typeof(Service1))){ ser.Opening += ser_Opening; ser.Opened += ser_Opened; //开启接口 ser.Open(); //用来防止using讲进程结束 Console.ReadLine(); } } static void ser_Opened(object sender, EventArgs e) { Console.WriteLine("接口发布完成!"); } static void ser_Opening(object sender, EventArgs e) { Console.WriteLine("接口发布中"); } }
评价
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术