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