SignalR/SignalR — Issue #115: Task helpers do not use the ASP.NET sync context and as such user invoked methods do not get the request's culture, user principal, etc. flowed
Author: DamianEdwards
Created: 2012-01-06 18:00:29+00:00
State: open
Labels: bug

SignalR is fully async top to bottom and utilizes a set of custom Task helper methods to achieve this. Of course, there are points in the SignalR pipeline where it calls back into user code, e.g. a Hub method. Currently, SignalR does not invoke user code on the synchronization context that the request was originally received with, and as such, the culture, user principle, and other thread specific information is not set when invoking user code. This could mean simple things like calling String.Format in user code will yield results that don't match the culture of the original request.