refactor: 更新 IHostingEnvironment 接口

This commit is contained in:
Argo Zhang 2019-09-28 17:44:29 +08:00
parent e7a4eb5899
commit 93e7fb1c0d
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ namespace Bootstrap.Admin.Api
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.Use(async (context, next) =>
{
@ -118,7 +118,7 @@ namespace Bootstrap.Admin.Api
}
/// <summary>
///
///
/// </summary>
public class HealthCheckWebHost<TStartup> : WebApplicationFactory<TStartup> where TStartup : class
{
@ -129,7 +129,7 @@ namespace Bootstrap.Admin.Api
}
/// <summary>
///
///
/// </summary>
/// <returns></returns>
protected override IWebHostBuilder CreateWebHostBuilder() => WebHost.CreateDefaultBuilder<TStartup>(null);