public async Task <IActionResult> NextAsync()
        {
            var value = await _randomClient.NextAsync().ConfigureAwait(false);

            Console.WriteLine($"[{DateTime.Now}] Next random number is {value}");

            return(Ok(value));
        }
示例#2
0
        public async Task <IActionResult> NextAsync()
        {
            var value = await _random.NextAsync().ConfigureAwait(false);

            return(Ok(value));
        }