Exemplo n.º 1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     GmiApp.Initialize();
 }
Exemplo n.º 2
0
 public void GetCoinInfoTest()
 {
     try
     {
         GmiApp.Initialize();
         ApiLayerService.LoadCurrencies();
         var coin = WhatToMineService.GetCoinInfo(1);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            GmiApp.Initialize();
            //Update Fiat Currencies Exchange Rate
            TryHelper.Try(FiatCurrencyService.Instance.AddOrUpdate, Log);

            //Update Crypto Currencies info, and update Algorithms
            TryHelper.Try(CoinService.Instance.AddOrUpdate, Log);
            //Update USD Exchange Rates;
            TryHelper.Try(CoinService.Instance.UpdateUsdExchangeRates, Log);

            //Generate Profitability Report
            GpusInsightsReport report = TryHelper.Try(GpuInsightsService.GenerateReport, Log);

            //Save the Report To DB
            TryHelper.Try(() => GpusInsightsReportService.Instance.Add(report), Log);
        }