aspnetcore/test/Microsoft.AspNetCore.Hostin.../Fakes
David Fowler cfe9b26a34
Added support for generic host based IWebHostBuilder (#1580)
- This adds an implementation of IWebHostBuilder as a facade over the IHostBuilder.
This removes the 2 container issue by executing the Startup.ConfigureServies and Startup.ConfigureContainer inline as part of building the IHostBuilder.
- The implementation is highly compatible implementation since it exposes the same IWebHostBuilder interface.
Existing extensions mostly work.
- There are some caveats with this approach.
    - Injecting services into Startup is not extremely constrained to the
    services availble on HostBuilderContext. This includes the IHostingEnvironment
    and the IConfiguration.
    - IStartup is broken when using this pattern because it isn't composable.
    - The IStartupConfigureServicesFilter and IStartupConfigureContainer The before
    and after filters added in 2.1 are also broken  because there's a single container (it could maybe be fixed by downcasting and doing something specific on the GenericHostBuilder instance).
    - Calling into IWebHostBuilder.Build will throw a NotSupportedException since
    this implementation is just a facade over the IHostBuilder.
2018-11-13 21:22:30 -08:00
..
CustomLoggerFactory.cs Simplify WebHostBuilderTests.CanUseCustomLoggerFactory. 2017-04-05 11:23:54 -07:00
FakeOptions.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
FakeService.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
GenericWebHost.cs Added support for generic host based IWebHostBuilder (#1580) 2018-11-13 21:22:30 -08:00
GenericWebHostBuilderWrapper.cs Added support for generic host based IWebHostBuilder (#1580) 2018-11-13 21:22:30 -08:00
IFactoryService.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
IFakeEveryService.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
IFakeScopedService.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
IFakeService.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
IFakeServiceInstance.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
IFakeSingletonService.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
IFakeStartupCallback.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
INonexistentService.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
Startup.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupBase.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupBoom.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupCaseInsensitive.cs Fix case sensitivity on Startup classes and methods (#1166) 2017-08-18 09:45:12 -07:00
StartupConfigureServicesThrows.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupConfigureThrows.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupCtorThrows.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
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
StartupNoServicesNoInterface.cs Added support for generic host based IWebHostBuilder (#1580) 2018-11-13 21:22:30 -08:00
StartupPrivateConfigure.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupStaticCtorThrows.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupThrowTypeLoadException.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupTwoConfigureServices.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupTwoConfigures.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupWithConfigureServices.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupWithConfigureServicesNotResolved.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupWithHostingEnvironment.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupWithILoggerFactory.cs Deterministically dispose instances created by WebHostBuilder (#868) 2016-10-31 11:59:57 -07:00
StartupWithNullConfigureServices.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00
StartupWithScopedServices.cs Create a scoped service provider for the call to Configure (#1106) 2017-06-19 14:14:20 -07:00
StartupWithServices.cs Rename AspNet 5 file contents. 2016-01-22 12:21:40 -08:00