public void Handle(GameDeletedEvent e) { var dtos = QueryDataStore.GetData <GetGamesWithPlayerDto>().Where(x => x.GameId == e.AggregateId).ToList(); foreach (var d in dtos) { QueryDataStore.Delete <GetGamesWithPlayerDto>(d); } }
public void Handle(GameDeletedEvent e) { var games = QueryDataStore.GetData <GetPlayerGamesDto>().Where(x => x.GameId == e.AggregateId).ToList(); foreach (var g in games) { QueryDataStore.Delete <GetPlayerGamesDto>(g); } }
public void Handle(GameDeletedEvent e) { var dto = QueryDataStore.GetData <GetGamesListDto>().Single(d => d.GameId == e.GameId); QueryDataStore.Delete(dto); }
public void Handle(PlayerDeletedEvent e) { var dto = QueryDataStore.GetData <GetPlayersDto>().Single(p => p.PlayerId == e.PlayerId); QueryDataStore.Delete(dto); }
public void Handle(PlayerRemovedFromGameEvent e) { var dto = QueryDataStore.GetData <GamePlayersLookupDto>().Single(x => x.GameId == e.GameId && x.PlayerId == e.PlayerId); QueryDataStore.Delete(dto); }
public void Handle(PlayerDeletedEvent e) { var dto = QueryDataStore.GetData <GetPlayerCountByNameDto>().Single(d => d.PlayerId == e.PlayerId); QueryDataStore.Delete(dto); }
public void Handle(PlayerRemovedFromGameEvent e) { var dto = QueryDataStore.GetData <GetGamePlayersDto>().Single(p => p.GameId == e.GameId && p.PlayerId == e.PlayerId); QueryDataStore.Delete(dto); }
public void Handle(GameDeletedEvent e) { var dto = QueryDataStore.GetData <GetGamesListDto>().Single(x => x.GameId == e.AggregateId); QueryDataStore.Delete <GetGamesListDto>(dto); }
public void Handle(GameDeletedEvent e) { var dto = QueryDataStore.GetData <GetGameCountByDateDto>().Single(d => d.GameId == e.AggregateId); QueryDataStore.Delete <GetGameCountByDateDto>(dto); }