WaitForCardReaderBackToIdle.cs 807 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Wayne.Lib.StateEngine;
  7. using Wayne.Lib.StateEngine.Generic;
  8. namespace SinochemInternetPlusApp.States.CarPlateMode
  9. {
  10. public class WaitForCardReaderBackToIdle : TimeoutState<FuelingPoint>
  11. {
  12. protected override void HandleNonTimeoutEvent(StateEngineEvent stateEngineEvent, ref Transition transition)
  13. {
  14. }
  15. protected override void Timeout(ref Transition transition)
  16. {
  17. transition = new Transition(this, TransitionType.Timeout);
  18. }
  19. protected override int TimeoutInterval =>
  20. TimeoutValues.GetValueInMilliSec(TimeoutValues.FuelingPoint.CarPlateMode_WaitForCardReaderBackToIdle, 2);
  21. }
  22. }