Interface IStateTransitionHandler<TState, TInput, TResult>
- Namespace
- LfrlAnvil.Computable.Automata
- Assembly
- LfrlAnvil.Computable.Automata.dll
Represents a handler that is invoked when IStateMachine<TState, TInput, TResult> transitions to a different state.
public interface IStateTransitionHandler<TState, TInput, TResult> where TState : notnull where TInput : notnull
Type Parameters
TStateState type.
TInputInput type.
TResultResul type.
Methods
Handle(StateTransitionHandlerArgs<TState, TInput, TResult>)
Implementation of this handler's invocation.
TResult Handle(StateTransitionHandlerArgs<TState, TInput, TResult> args)
Parameters
argsStateTransitionHandlerArgs<TState, TInput, TResult>Invocation arguments.
Returns
- TResult
Result provided by this handler.