Skip to content

Commit cb39747

Browse files
committed
removed obsolote usages
1 parent 09cc873 commit cb39747

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/AbpCompanyName.AbpProjectName.Web/Startup/AbpProjectNameWebModule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class AbpProjectNameWebModule : AbpModule
1818
{
1919
private readonly IConfigurationRoot _appConfiguration;
2020

21-
public AbpProjectNameWebModule(IHostingEnvironment env)
21+
public AbpProjectNameWebModule(IWebHostEnvironment env)
2222
{
2323
_appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
2424
}
@@ -46,4 +46,4 @@ public override void PostInitialize()
4646
.AddApplicationPartsIfNotAddedBefore(typeof(AbpProjectNameWebModule).Assembly);
4747
}
4848
}
49-
}
49+
}

src/AbpCompanyName.AbpProjectName.Web/Startup/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
5757
if (env.IsDevelopment())
5858
{
5959
app.UseDeveloperExceptionPage();
60-
app.UseDatabaseErrorPage();
6160
}
6261
else
6362
{

src/AbpCompanyName.AbpProjectName.Web/Views/Shared/Components/LanguageSelection/LanguageSelectionViewComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task<IViewComponentResult> InvokeAsync()
2222
CurrentUrl = Request.Path
2323
};
2424

25-
return View(model);
25+
return await Task.FromResult(View(model));
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)