예제 #1
0
        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);
            }
        }
예제 #2
0
 public void GetCoins()
 {
     CoinTracker.Models.CoinAPI coinAPI = new Models.CoinAPI();
     var result = coinAPI.CoinsGet();
 }