protected override async void HandleMessage(string content) { var command = JsonConvert.DeserializeObject <Command>(content); command.Id = await _commandRepository.GetNextId(); await _commandRepository.Create(command); Console.WriteLine("new command: " + command.Id + " " + command.Code + " " + command.DateTime.ToString() + " " + command.RecordId + " " + command.Status); await command.Execute(); // SignalR obrada... _ = _hub.Clients.All.SendAsync("commands", command); }