Esempio n. 1
0
 /// <summary>
 ///     Func runs when performs into current state (entry into new state) based on concrete input value.
 /// </summary>
 public static StateConfiguration <TState, TInput> OnEntry <TState, TInput>(this StateConfiguration <TState, TInput> config, Action onEntry)
 {
     return(config.OnEntry((x) =>
     {
         onEntry();
         return Task.CompletedTask;
     }));
 }
Esempio n. 2
0
 /// <summary>
 ///     Func runs when performs into current state (entry into new state).
 /// </summary>
 public static StateConfiguration <TState, TInput> OnEntry <TState, TInput>(this StateConfiguration <TState, TInput> config, Func <Task> onEntry)
 {
     return(config.OnEntry((x) => onEntry()));
 }