public async Task BroadcastGameState(Guid gameId) { var gameState = await gameReadService.GetGameState(gameId); await hubContext.Clients.All.SendAsync(gameId.ToString(), gameState); }
public Task <GameStateDto> GetGameState([FromRoute] Guid id) { return(gameReadService.GetGameState(id)); }