aspnetcore/src
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
..
Microsoft.AspNetCore.Authentication.Abstractions Add AuthenticationProperties.Parameters (#1008) 2018-03-23 09:13:02 -07:00
Microsoft.AspNetCore.Authentication.Core
Microsoft.AspNetCore.Http Attempt to make it easier to detect when the request is done (#1021) 2018-06-26 11:49:12 -07:00
Microsoft.AspNetCore.Http.Abstractions Set 2.1 baselines 2018-06-14 10:13:59 -07:00
Microsoft.AspNetCore.Http.Extensions Set 2.1 baselines 2018-06-14 10:13:59 -07:00
Microsoft.AspNetCore.Http.Features Set 2.1 baselines 2018-06-14 10:13:59 -07:00
Microsoft.AspNetCore.Owin Set 2.1 baselines 2018-06-14 10:13:59 -07:00
Microsoft.AspNetCore.WebUtilities Set 2.1 baselines 2018-06-14 10:13:59 -07:00
Microsoft.Net.Http.Headers Set 2.1 baselines 2018-06-14 10:13:59 -07:00
Directory.Build.props