Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 622d112

Browse files
committed
#723 Make HttpContextAccessor static AsyncLocal
1 parent 3b25acd commit 622d112

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Microsoft.AspNetCore.Http/HttpContextAccessor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public HttpContext HttpContext
3030
}
3131

3232
#elif NETSTANDARD1_3
33-
private AsyncLocal<HttpContext> _httpContextCurrent = new AsyncLocal<HttpContext>();
33+
private static AsyncLocal<HttpContext> _httpContextCurrent = new AsyncLocal<HttpContext>();
34+
3435
public HttpContext HttpContext
3536
{
3637
get

0 commit comments

Comments
 (0)