Skip to content

Context #5

@dandcg

Description

@dandcg

Hi Prasanna,

I have been using the stateless library however it didn't quite fill my needs, so I extended it to be initialized like so:

var machine = new StateMachine<State, Trigger, Context>

the reason behind this being that is I can have a WF factory that returns a machine with it own instance of a context that can be utilized through all the state events (OnEntry, OnExit etc).

As stateless doesn't support async await I am looking at your library and will probably implement something similar based on this.

The reason for my issue (no issue really) is to see if you have a view on this approach?

Cheers,

Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions