예제 #1
0
        public IActionResult GetRates()
        {
            var result = _getRatesQuery.Execute();

            for (int i = 0; i < 5000; i++)
            {
                _getRatesQuery.Execute();
            }
            return(new OkObjectResult(result));
        }
예제 #2
0
        public async Task <IActionResult> GetRates()
        {
            var result = await _getRatesQuery.Execute();

            for (int i = 0; i < 500; i++)
            {
                await _getRatesQuery.Execute();
            }
            return(new OkObjectResult(result));
        }
예제 #3
0
        public async Task <IActionResult> GetRates()
        {
            var result = await _getRatesQuery.Execute().ConfigureAwait(false);

            return(new OkObjectResult(result));
        }