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 {