Table of Contents

Interface IAppStateMachineWorker<T>

Namespace
Phoesion.Glow.SDK.Firefly
Assembly
Phoesion.Glow.SDK.Firefly.Abstractions.dll
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 T

The new state

fromState T

the previous state

cancellationToken CancellationToken

Cancel operation

Returns

Task