public Task Consume(ConsumeContext <GameDto[]> context) { _localStore.SetAvailableGames(context.Message.Where(o => o.Players.Length <= 8).ToList()); if (!string.IsNullOrEmpty(_localStore.GameName)) { var thisGame = context?.Message?.FirstOrDefault(o => o.GameName.Equals(_localStore.GameName, StringComparison.CurrentCultureIgnoreCase)); if (thisGame != null) { _localStore.UpdateGameState(thisGame); } } return(Task.CompletedTask); }