public static void RunAsCustomService(this IWebHost host) { var webHostService = new CustomWebHostService(host); ServiceBase.Run(webHostService); }
public static void Main(string[] args) { CustomWebHostService.Launch(args, 59001); }