1234567891011121314151617181920212223242526 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Wayne.Lib.StateEngine;
- using Wayne.Lib.StateEngine.Generic;
- namespace SinochemInternetPlusApp.EpsTrxCleanup.States
- {
- class WaitForWork : TimeoutState<EpsTrxCleanupManager>
- {
- protected override int TimeoutInterval =>
- TimeoutValues.GetValueInMilliSec(TimeoutValues.EpsTrxCleanup.WaitForWork, 30);
- protected override void HandleNonTimeoutEvent(StateEngineEvent stateEngineEvent, ref Transition transition)
- {
- DebugLog("WaitForWork state, should not be here!!!");
- }
- protected override void Timeout(ref Transition transition)
- {
- transition = new Transition(this, TransitionType.WorkStarted);
- }
- }
- }
|