Skip to content

Async trigger behaviours are not included when calling GetInfo #643

@JMolenkamp

Description

@JMolenkamp

Async trigger behaviours are not included when calling GetInfo, resulting in incomplete graphs.
In the following snippet, stateMachineInfo will not contain the transition from A to B.

var sm = new StateMachine<State, Trigger>(State.A);
sm.Configure(State.A)
    .PermitIfAsync(Trigger.X, State.B, () => Task.FromResult(true));

var stateMachineInfo = sm.GetInfo();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions