コード例 #1
0
        public async Task <IEnumerable <MarioLevelEntity> > GetAsync()
        {
            var marioTask1 = this.externalMarioService.GetAsync();
            var marioTask2 = this.externalMarioService.GetAsync();

            await Task.WhenAll(new List <Task>() { marioTask1, marioTask2 });

            var result = marioLevels.Get().Select(mm => new MarioLevelEntity(mm));

            return(result);
        }
コード例 #2
0
        public IEnumerable <MarioLevelEntity> Get()
        {
            var result = marioLevels.Get().Select(mm => new MarioLevelEntity(mm));

            return(result);
        }