Exemplo n.º 1
0
 public async Task SendCommand(string machineId, string command)
 {
     if (command == null)
     {
         return;
     }
     var client = _clientAppService.GetClientById(machineId);
     await _clientContext.Clients.Client(client.ConnenctionId).SendAsync("SendCommand", Context.ConnectionId, command);
 }