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

Commit

Permalink
#723 Make HttpContextAccessor static AsyncLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
Tratcher committed Jan 9, 2017
1 parent 3b25acd commit 622d112
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Microsoft.AspNetCore.Http/HttpContextAccessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public HttpContext HttpContext
}

#elif NETSTANDARD1_3
private AsyncLocal<HttpContext> _httpContextCurrent = new AsyncLocal<HttpContext>();
private static AsyncLocal<HttpContext> _httpContextCurrent = new AsyncLocal<HttpContext>();

public HttpContext HttpContext
{
get
Expand Down

0 comments on commit 622d112

Please sign in to comment.