public void Switch(BaseMinerModelEx miner) { miner.UnSubscribeOnProcessEvent(); Kill(miner); miner.StartClientProcess(); miner.currentState = new ForClientWorkingState(); }
public void Crash(BaseMinerModelEx miner) { if (miner.AutoRestart) { miner.StartClientProcess(); miner.currentState = new ForClientWorkingState(); } else { miner.currentState = new IDLEState(); } }
public void Run(BaseMinerModelEx miner) { miner.StartClientProcess(); miner.currentState = new ForClientWorkingState(); }