コード例 #1
0
        public async Task <IActionResult> GetAll(int max = 100)
        {
            var list = new List <Number>();

            await foreach (var number in _numberService.GetAll(max))
            {
                await Task.Delay(100);

                list.Add(number);
            }
            return(Ok(list));
        }