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