public async Task OnBombPlace(BombDTO bomb) // creating a new bomb { Console.WriteLine(bomb.ToString()); _bombService.Add(bomb); await Clients.All.SendAsync("ReceiveNewBomb", bomb); }
public void OnNewBomb(BombDTO bombDTO) { _log.Info(bombDTO.ToString()); _client.OnNewBomb(bombDTO); }