예제 #1
0
 public void AddFruit()
 {
     _fruitAppService.Add();
     _hubContext.Clients.All.SendAsync("Render", _playerAppService.GetAll(), _fruitAppService.GetAll());
 }
예제 #2
0
 public async Task RenderPlayers()
 {
     await Clients.All.SendAsync("Render", _playerAppService.GetAll(), _fruitAppService.GetAll());
 }