Пример #1
0
 public CurrencyHistory FromDate(LocalDate start)
 {
     StartDate   = start;
     BoeCurrency = new BoeCurrencyHistory(StartDate, Logger, HttpClient);
     Cache       = new AsyncLazyCache <string, List <RateTick> >(BoeCurrency.Retrieve);
     return(this);
 }
Пример #2
0
 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);
 }