Go to file
David Fowler 22423271c9 Make the RequestServicesContainerMiddleware thinner (#1360)
- Today the request services middleware is responsible for making sure there are request scoped services.
This PR tries introduces some breaking changes that are hopefully acceptable in order to gain some performance.
- Here are the assumptions this PR makes:
 - Since this middleware is first in the pipeline, the only thing that can
  set a default service provider would be the server itself. Since we have no servers that do that
  I removed that code that tries to noop if there's an existing service provider.
 - This PR no longer restores the previous service provider feature since it gets replaced every request
 anyways. Kestrel also clears out the feature on each request so it shouldn't be a problem (in theory).
 Once again, since this middleware is first, it is the last thing that runs before the server re-gains
 control on the way out so there's no need to restore anything.
 - We use the RegisterForDispose method to dispose of the IServiceProvider instead of doing it inline.
2018-03-21 02:19:25 -07:00
build Branching for 2.1.0-preview2 2018-03-16 11:14:32 -07:00
samples Update samples and tests to target netcoreapp2.1 2017-11-13 17:10:46 -08:00
shared/Microsoft.AspNetCore.Hosting.WebHostBuilderFactory.Sources [Fixes #1295] Provide a better exception message when BuildWebHost does not match (#1333) 2018-03-01 12:06:58 -08:00
src Make the RequestServicesContainerMiddleware thinner (#1360) 2018-03-21 02:19:25 -07:00
test Convert TestHost ResponseStream to use Pipes. 2018-03-07 15:22:20 -08:00
.appveyor.yml Update dependencies.props to 2.1.0-preview-28193, build tools to 2.1.0-preview1-1010 [ci skip] 2018-01-31 15:01:11 -08:00
.gitattributes
.gitignore Pin tool and package versions to make build more repeatable 2017-10-31 13:04:32 -07:00
.travis.yml Update dependencies.props to 2.1.0-preview-28193, build tools to 2.1.0-preview1-1010 [ci skip] 2018-01-31 15:01:11 -08:00
CONTRIBUTING.md
Directory.Build.props Convert TestHost ResponseStream to use Pipes. 2018-03-07 15:22:20 -08:00
Directory.Build.targets Use MicrosoftNETCoreApp21PackageVersion to determine the runtime framework in netcoreapp2.1 2017-11-17 13:00:25 -08:00
Hosting.sln Add missing TestAssets projects to Hosting.sln (#1352) 2018-03-14 18:31:10 -07:00
LICENSE.txt
NuGet.config Use MSBuild to set NuGet feeds instead of NuGet.config 2017-11-20 15:54:32 -08:00
NuGetPackageVerifier.json [Fixes #1301] Remove Microsoft.AspNetCore.Certificates.Configuration.Sources 2017-12-30 12:26:26 -08:00
README.md
build.cmd Update bootstrappers 2017-10-09 12:42:15 -07:00
build.sh Update bootstrappers 2017-10-09 12:42:15 -07:00
korebuild-lock.txt Branching for 2.1.0-preview2 2018-03-16 11:14:32 -07:00
korebuild.json Update KoreBuild channel 2018-03-16 12:29:37 -07:00
run.cmd Update bootstrappers 2017-10-09 12:42:15 -07:00
run.ps1 Update bootstrappers 2017-12-04 12:31:02 -08:00
run.sh Update bootstrappers 2017-12-04 12:31:02 -08:00
version.props Don't double-append the build number for IntegrationTesting 2018-03-07 15:14:08 -08:00

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.