private static async Task <bool> StopMining()
        {
            await MiningManager.StopAllMiners();

            StopComputeDevicesCheckTimer();
            StopInternetCheckTimer();
            DisplayNoInternetConnection(false); // hide warning
            DisplayMiningProfitable(true);      // hide warning
            return(true);
        }
Example #2
0
        //public static bool StartDemoMining()
        //{
        //    StopMinerStatsCheckTimer();
        //    return false;
        //}

        private static bool StopMining(bool headless)
        {
            MiningManager.StopAllMiners();

            PInvoke.PInvokeHelpers.AllowMonitorPowerdownAndSleep();
            StopMinerStatsCheckTimer();
            StopComputeDevicesCheckTimer();
            StopPreventSleepTimer();
            StopInternetCheckTimer();
            DisplayNoInternetConnection(false); // hide warning
            DisplayMiningProfitable(true);      // hide warning
            return(true);
        }