Пример #1
0
        Miner()
        {
            changeWalletTimer.Elapsed += ChangeWalletTimer_OnTick;

            refreshNetworkAPI.Elapsed += RefreshNetworkAPIsIfCooldown;
            RefreshNetworkAPIsIfCooldown(null, null);
            refreshNetworkAPI.AutoReset = false;
            refreshNetworkAPI.Start();

            monitor = new MinerResourceMonitor(middlewareServer);
        }
Пример #2
0
        Miner()
        {
            settings         = new Settings();
            middlewareServer = new MiddlewareServer();
            minerAutoStart   = new MinerAutoStart();
            bitcoinPrice     = new APIBitcoinPrice();
            miningPriceList  = new APINiceHashMiningPriceList();

            changeWalletTimer.Elapsed += ChangeWalletTimer_OnTick;

            refreshNetworkAPI.Elapsed  += RefreshNetworkAPIsIfCooldown;
            refreshNetworkAPI.AutoReset = false;
            RefreshNetworkAPIsIfCooldown(null, null);
            monitor = new MinerResourceMonitor(settings.minerConfig);
        }