public CurrencyHistory FromDate(LocalDate start) { StartDate = start; BoeCurrency = new BoeCurrencyHistory(StartDate, Logger, HttpClient); Cache = new AsyncLazyCache <string, List <RateTick> >(BoeCurrency.Retrieve); return(this); }
public CurrencyHistory(ILogger <CurrencyHistory>?logger = null, HttpClient?httpClient = null) { Logger = logger ?? NullLogger <CurrencyHistory> .Instance; HttpClient = httpClient ?? new HttpClient(); BoeCurrency = new BoeCurrencyHistory(StartDate, Logger, HttpClient); Cache = new AsyncLazyCache <string, List <RateTick> >(BoeCurrency.Retrieve); }