摘要: 步骤:1、创建WindowsService工程。2、点击Manage NuGet Packages,查询Microsoft Asp.NET Web APISelf Host,点击Install。3、编辑service.cs文件如下: 1 public partial class Service1 : ServiceBase 2 { 3 private HttpSelfHostServer _server; 4 private readonly HttpSelfHostConfiguration _config; 5 public cons... 阅读全文
posted @ 2013-02-28 10:19 super 86 阅读(788) 评论(0) 推荐(1) 编辑