支持挂Windows服务
This commit is contained in:
parent
e432256383
commit
9c85165717
|
@ -12,6 +12,7 @@ namespace StaffManagement
|
||||||
|
|
||||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||||
Host.CreateDefaultBuilder(args)
|
Host.CreateDefaultBuilder(args)
|
||||||
|
.UseWindowsService()
|
||||||
.ConfigureWebHostDefaults(webBuilder => {
|
.ConfigureWebHostDefaults(webBuilder => {
|
||||||
webBuilder.UseStartup<Startup>();
|
webBuilder.UseStartup<Startup>();
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user