Interface IAppStateMachineWorker<T>
public interface IAppStateMachineWorker<T> : IAppStateMachineWorker where T : struct, Enum
Type Parameters
T
Methods
Run(IAppStateMachineExecutionContext<T>, T, T, CancellationToken)
Will run any state change request that is not handled from the builder
Task Run(IAppStateMachineExecutionContext<T> context, T state, T fromState, CancellationToken cancellationToken)
Parameters
context
IAppStateMachineExecutionContext<T>The execution context
state
TThe new state
fromState
Tthe previous state
cancellationToken
CancellationTokenCancel operation