示例#1
0
        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);
            }
        }
示例#3
0
        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);
        }
示例#5
0
        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);
        }
示例#8
0
        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);
        }