Ejemplo n.º 1
0
        public IActionResult GetRates()
        {
            var result = _getRatesQuery.Execute();

            for (int i = 0; i < 5000; i++)
            {
                _getRatesQuery.Execute();
            }
            return(new OkObjectResult(result));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> GetRates()
        {
            var result = await _getRatesQuery.Execute().ConfigureAwait(false);

            return(new OkObjectResult(result));
        }