From 239e2202e14e37f1c193d9ca3e186ed6961f4352 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Thu, 16 Feb 2017 14:34:13 -0800 Subject: [PATCH] ActionContextAccessor netstandard behave like net451 (#5810) --- .../Infrastructure/ActionContextAccessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/ActionContextAccessor.cs b/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/ActionContextAccessor.cs index 1204730795..cad93b48bd 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/ActionContextAccessor.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/ActionContextAccessor.cs @@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure } } #else - private readonly AsyncLocal _storage = new AsyncLocal(); + private static readonly AsyncLocal _storage = new AsyncLocal(); public ActionContext ActionContext {