I would like to be able to do something like this:
IHubProxy myHubProxy = /* ... */;
var t1 = Task.Run(() => myHubProxy.Invoke<int>("Foo");
var t2 = Task.Run(() => myHubProxy.Invoke<int>("Foo");
var r1 = await t1;
var r2 = await t2;
Where "Foo" is executed in parallel on the server. However, the way things work by default I believe both of the calls will be synchronized to the hub's thread context and run one by one. Is there any simple way to have a single hubProxy schedule two parallel invocations on the same SignalR hubproxy/connection?