aspnetcore/test/Microsoft.AspNetCore.Hostin.../Fakes
David Fowler e88ad84a72 Create a scoped service provider for the call to Configure (#1106)
* Create a scoped service provider for the call to Configure
- This allows scoped dependencies to be injected into the Configure method.
It means you can resolve the DbContext or any other scoped service without
the hassle of the CreateScope boiler plate. As a side effect, it also makes
Startup.Configure a bit more testable.
2017-06-19 14:14:20 -07:00
..
CustomLoggerFactory.cs Simplify WebHostBuilderTests.CanUseCustomLoggerFactory. 2017-04-05 11:23:54 -07:00
FakeOptions.cs
FakeService.cs
IFactoryService.cs
IFakeEveryService.cs
IFakeScopedService.cs
IFakeService.cs
IFakeServiceInstance.cs
IFakeSingletonService.cs
IFakeStartupCallback.cs
INonexistentService.cs
Startup.cs
StartupBase.cs
StartupBoom.cs
StartupConfigureServicesThrows.cs
StartupConfigureThrows.cs
StartupCtorThrows.cs
StartupNoServices.cs This change introduces a new service `IStartup` that can be registered in the hosting container to override any startup logic. `UseStartup` overloads have been changed to detect `IStartup` and directly put it in the container, or to wrapping it with a `ConventionBasedStartup` implementation to preserve the existing behavior. 2016-04-18 21:33:03 -07:00
StartupPrivateConfigure.cs
StartupStaticCtorThrows.cs
StartupThrowTypeLoadException.cs
StartupTwoConfigureServices.cs
StartupTwoConfigures.cs
StartupWithConfigureServices.cs
StartupWithConfigureServicesNotResolved.cs
StartupWithHostingEnvironment.cs
StartupWithILoggerFactory.cs Deterministically dispose instances created by WebHostBuilder (#868) 2016-10-31 11:59:57 -07:00
StartupWithNullConfigureServices.cs
StartupWithScopedServices.cs Create a scoped service provider for the call to Configure (#1106) 2017-06-19 14:14:20 -07:00
StartupWithServices.cs