public async Task <IEnumerable <CryptoCurrency> > Handle(GetAllCryptoCurrenciesQuery request, CancellationToken cancellationToken) { return(await _cryptoCurrencyService.GetAllCurrencies().ConfigureAwait(false)); }
public IActionResult Get() { return(Ok(_coinService.GetAllCurrencies())); }
public override async Task DoWork(CancellationToken cancellationToken) { var currencies = await _cryptoCurrencyService.GetAllCurrencies(); await _cryptoCurrencyService.FetchLatestQuoteAndSetCache(currencies.Select(c => c.Symbol).ToArray()); }