Beispiel #1
0
 public TOutput?ExecuteTransition(TInput input)
 {
     try
     {
         var output = stateMachine.ExecuteTransition(input);
         actions?.Execute(output);
         return(output);
     }
     catch (InvalidOperationException ex)
     {
         logger?.Log(ex.Message);
         stateMachine.Reset();
         return(null);
     }
 }
        private string GetAction(string input)
        {
            var output = stateMachine.ExecuteTransition(events[input]);

            return(actions.GetKey(output));
        }