State Machine API

Reference for authoring and hosting portable snapshot state machines. For the concepts (the two-document model, the guarantees, exactly-once effects), see State Machines. For task-oriented walkthroughs, see Authoring a machine and Declarative authoring.

Pages

PageCovers
AddStateMachinesDiscovering machines and wiring the subsystem in one call
Machine authoringThe Machine<TState, TTrigger> base class and the fluent builder
Rules vocabularyThe string-free Rules surface for declarative guards and reducers
Declarative data modelThe Rule / Reduction / ContextSchema types the IR carries
IR formatThe exported machine.ir.json: structure, schema, and behaviour as data
MigrationsMigrateFrom and forward-migrating stored drafts across versions
EffectsISnapshotEffect, the exactly-once side effect and its receipt
Persistence portsISnapshotStore and ISnapshotPrincipal
Result codesThe typed outcomes of advance and rehydrate
AddTraxStateMachineSelfCheckThe startup self-check registered as an ASP.NET Core health check