private void DoWork(object state) { _logger.LogInformation("Timed Background Service is working."); using (var scope = _services.CreateScope()) { //var DB = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>(); var services = scope.ServiceProvider; Models.CoinAPI coinAPI = new Models.CoinAPI(); coinAPI.BinanceUpdate(services); } }
public void GetCoins() { CoinTracker.Models.CoinAPI coinAPI = new Models.CoinAPI(); var result = coinAPI.CoinsGet(); }