Use ServiceActivator instead of IHttpContextAccessor

This commit is contained in:
hishamco
2020-10-15 06:07:11 +03:00
parent 81475fd835
commit 4a90e6e64f
4 changed files with 15 additions and 9 deletions

View File

@ -231,6 +231,8 @@ namespace Oqtane
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
ServiceActivator.Configure(app.ApplicationServices);
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();