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

Make HttpContextAccessor static AsyncLocal #753

Merged
merged 1 commit into from
Jan 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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