支持挂Windows服务

This commit is contained in:
falcon 2020-11-03 14:17:09 +08:00
parent e432256383
commit 9c85165717

View File

@ -12,6 +12,7 @@ namespace StaffManagement
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.UseWindowsService()
.ConfigureWebHostDefaults(webBuilder => {
webBuilder.UseStartup<Startup>();
})