コード例 #1
0
 public void Switch(BaseMinerModelEx miner)
 {
     miner.UnSubscribeOnProcessEvent();
     Kill(miner);
     miner.StartClientProcess();
     miner.currentState = new ForClientWorkingState();
 }
コード例 #2
0
 public void Crash(BaseMinerModelEx miner)
 {
     if (miner.AutoRestart)
     {
         miner.StartClientProcess();
         miner.currentState = new ForClientWorkingState();
     }
     else
     {
         miner.currentState = new IDLEState();
     }
 }
コード例 #3
0
        public void Run(BaseMinerModelEx miner)
        {
            miner.StartClientProcess();

            miner.currentState = new ForClientWorkingState();
        }