Table of Contents

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

TState

State type.

TInput

Input type.

TResult

Resul type.

Methods

Handle(StateTransitionHandlerArgs<TState, TInput, TResult>)

Implementation of this handler's invocation.

TResult Handle(StateTransitionHandlerArgs<TState, TInput, TResult> args)

Parameters

args StateTransitionHandlerArgs<TState, TInput, TResult>

Invocation arguments.

Returns

TResult

Result provided by this handler.