aspnetcore/test
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.Core.Test Add AuthenticationProperties.Parameters (#1008) 2018-03-23 09:13:02 -07:00
Microsoft.AspNetCore.Http.Abstractions.Tests Add HostString.MatchesAny #2863 2018-02-13 14:40:14 -08:00
Microsoft.AspNetCore.Http.Extensions.Tests
Microsoft.AspNetCore.Http.Features.Tests
Microsoft.AspNetCore.Http.Tests Attempt to make it easier to detect when the request is done (#1021) 2018-06-26 11:49:12 -07:00
Microsoft.AspNetCore.Owin.Tests
Microsoft.AspNetCore.WebUtilities.Tests
Microsoft.Net.Http.Headers.Tests
Directory.Build.props Upgrade to netcoreapp22 2018-05-08 10:50:50 -07:00