public async void RequestWorkerCommand(string workerId, WorkerCommandMessage command) { var worker = this.FindWorkerById(workerId); if (worker != null) { await this.workersHubContext.Clients.Client(worker.ConnectionId) .SendAsync("CommandReceived", command); } }
public async void CommandWorker(WorkerCommandMessage message, string connectionId) { await this.Clients.Client(connectionId).SendAsync("CommandReceived", message); }