Fix test
This commit is contained in:
parent
0f0cfdfe94
commit
dbd340a5e0
|
|
@ -31,6 +31,7 @@ using Microsoft.AspNetCore.Mvc.ViewComponents;
|
|||
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
||||
using Microsoft.AspNetCore.Mvc.ViewFeatures.Internal;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using Microsoft.Extensions.ObjectPool;
|
||||
|
|
@ -261,6 +262,7 @@ namespace Microsoft.AspNetCore.Mvc
|
|||
services.AddSingleton<IHostingEnvironment>(GetHostingEnvironment());
|
||||
services.AddSingleton<ObjectPoolProvider, DefaultObjectPoolProvider>();
|
||||
services.AddSingleton<DiagnosticSource>(new DiagnosticListener("Microsoft.AspNet"));
|
||||
services.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
|
||||
services.AddLogging();
|
||||
services.AddOptions();
|
||||
services.AddMvc();
|
||||
|
|
|
|||
Loading…
Reference in New Issue