|public static class HttpRequestMessageExtensions|
|public static string GetHeaderValue(this HttpRequestMessage request, string name)|
|var found = request.Headers.TryGetValues(name, out values);|
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Could there be a problem though with another request coming in and it's on the same thread? In other words, if I was trying to grab a token from the header so I could then convert that to an account ID, could I possibly get the other user's account if they also hit the REST API at the same time? I ran into this when using the following code inside a controller's method: