Accessing AspNetRequest
问题 I have a global filters which adds a token to the request.Items collection which subsequent filters can also access. The problem I am having is when trying to get a hold of the request.Items when I am within an injected class. When trying to access the Items array this injected class using var req = HostContext.TryGetCurrentRequest(); my item is no longer available. I have discovered that this is because in the filters, the provided IRequest.Items array is a cloned copy of HttpContext.Current