[Archived] Code for hosting and starting up an ASP.NET Core application. Project moved to https://github.com/aspnet/Extensions and https://github.com/aspnet/AspNetCore
Перейти к файлу
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
.vsts-pipelines/builds
build Update dependencies.props 2018-10-07 19:15:05 +00:00
samples Added support for generic host based IWebHostBuilder (#1580) 2018-11-13 21:22:30 -08:00
shared/Internal.WebHostBuilderFactory.Sources
src Added support for generic host based IWebHostBuilder (#1580) 2018-11-13 21:22:30 -08:00
test Added support for generic host based IWebHostBuilder (#1580) 2018-11-13 21:22:30 -08:00
.appveyor.yml
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
Directory.Build.props automated: bulk infrastructure updates. Update bootstrapper scripts and remove unnecessary signing properties 2018-09-28 17:10:33 -07:00
Directory.Build.targets
Hosting.sln
LICENSE.txt Update LICENSE.txt 2018-09-27 15:32:13 -07:00
NuGet.config
NuGetPackageVerifier.json
README.md
build.cmd
build.sh
korebuild-lock.txt Update dependencies.props 2018-10-07 19:15:05 +00:00
korebuild.json
run.cmd
run.ps1 automated: bulk infrastructure updates. Update bootstrapper scripts and remove unnecessary signing properties 2018-09-28 17:10:33 -07:00
run.sh automated: bulk infrastructure updates. Update bootstrapper scripts and remove unnecessary signing properties 2018-09-28 17:10:33 -07:00
version.props

README.md

Hosting

AppVeyor: AppVeyor

Travis: Travis

The Hosting repo contains code required to host an ASP.NET Core application, it is the entry point used when self-hosting an application.

This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.