摘要:
步骤: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... 阅读全文