コード例 #1
0
        public SixReactiveDisposableList <GameDataModel> Handle(ListGamesQuery query)
        {
            var items      = _context.Games.OrderBy(x => x.MetaData.ReleasedOn);
            var mappedList = _gameMapper.Map <SixReactiveDisposableList <GameDataModel> >(items);

            SetupObservable(items, mappedList);
            return(mappedList);
        }
コード例 #2
0
        public Task <List <string> > HandleAsync(ListGamesQuery query)
        {
            var result = Directory.EnumerateDirectories(TickTackToeConstants.GamesPath)
                         .Select(path => new DirectoryInfo(path).Name)
                         .ToList();

            return(Task.FromResult(result));
        }