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);
            }
        }
Exemple #2
0
 public async void CommandWorker(WorkerCommandMessage message, string connectionId)
 {
     await this.Clients.Client(connectionId).SendAsync("CommandReceived", message);
 }