Exemplo n.º 1
0
 public static IStraightforwardStateMachineBuilder <TContext, IStraightforwardStatefulTask <TContext> > AsInitial <TContext>(
     this StraightforwardStatefulTaskDoAction <TContext> doAction)
 {
     return(StraightforwardStatefulTaskWrapper.Create(doAction).AsInitial <TContext, IStraightforwardStatefulTask <TContext> >());
 }
Exemplo n.º 2
0
 public static IStraightforwardStateMachineBuilder <TContext, IStraightforwardStatefulTask <TContext> > ThenGoTo <TContext>(
     this IStraightforwardStateMachineBuilder <TContext, IStraightforwardStatefulTask <TContext> > builder,
     StraightforwardStatefulTaskDoAction <TContext> doAction)
 {
     return(builder.AddStatefulTask(StraightforwardStatefulTaskWrapper.Create(doAction)));
 }