Miner() { changeWalletTimer.Elapsed += ChangeWalletTimer_OnTick; refreshNetworkAPI.Elapsed += RefreshNetworkAPIsIfCooldown; RefreshNetworkAPIsIfCooldown(null, null); refreshNetworkAPI.AutoReset = false; refreshNetworkAPI.Start(); monitor = new MinerResourceMonitor(middlewareServer); }
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); }