Go to file
David Fowler 0f4f1950f1
Attempt to make it easier to detect when the request is done (#1021)
- Today the async local reference to the HttpContext flows when the execution context is captured. When the http request has ended, the HttpContext property will return the reference to an invalid HttpContext instead of returning null. This change stores both the request id and the HttpContext and makes sure both match before returning anything valid.
- This is still racy but should catch more cases of people doing bad things.
- There will still be issue if people store the context in a local and use that reference instead of accessing it through the property getter but we can live with that.
- Set the TraceIdentifier to null in the default HttpContextFactory
- Added tests
2018-06-26 11:49:12 -07:00
.github
.vsts-pipelines/builds Adding VSTS file 2018-06-07 16:22:58 -07:00
build Update dependencies.props 2018-06-25 11:15:38 -07:00
samples/SampleApp
src Attempt to make it easier to detect when the request is done (#1021) 2018-06-26 11:49:12 -07:00
test Attempt to make it easier to detect when the request is done (#1021) 2018-06-26 11:49:12 -07:00
.appveyor.yml
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
Directory.Build.props Add certificate names for code signing 2018-06-05 22:32:18 -07:00
Directory.Build.targets
HttpAbstractions.sln
LICENSE.txt
NuGet.config
NuGetPackageVerifier.json
README.md
build.cmd
build.sh
korebuild-lock.txt Update dependencies.props 2018-06-25 11:15:38 -07:00
korebuild.json
run.cmd
run.ps1
run.sh
version.props

README.md

HttpAbstractions

AppVeyor Travis
AppVeyor Travis

Contains HTTP abstractions for ASP.NET Core such as HttpContext, HttpRequest, HttpResponse and RequestDelegate.

It also contains IApplicationBuilder and extensions to create and compose your application's pipeline.

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.