Exemple #1
0
 public static void RunScanCoinmarket()
 {
     client.BaseAddress = new Uri(AppSettingHelper.GetCoinMarketUrl());
     client.Timeout     = TimeSpan.FromSeconds(30);
     while (true)
     {
         _logger.Info("Get data from Coinmarket!!!");
         RunAsync().GetAwaiter().GetResult();
         Thread.Sleep(AppSettingHelper.GetCoinMarketInterval());
     }
 }