For Problem1, Client sends a request to start a task, MVC processes the request and should send a response containing a taskId. From the new webpage, a SignalR connection is started and you should define a Hub Method like Register(taskId) and on server map the taskId to Context.ConnectionId – Gustavo Armenta Aug 29 at 19:04
@GustavoArmenta Ok, so the server sends the client back some manner of ID for the task, the client then connects through SignalR and registers its TaskID, which is then mapped to the client ID. Then the running task uses that mapping to send information back, right? But how does the task access the mapping of task ID to client ID? How does a Controller access persistent data in a SignalR hub? – Danation Aug 29 at 19:15
Well, you could save the mapping on memory with a static Dictionary or persist data to a database – Gustavo Armenta Aug 30 at 16:47
@GustavoArmenta, I ended up going with your option (I was able to fix both problems.) If you add it as an answer, I will accept it. – Danation Sep 18 at 4:17