/// <summary>
 /// Initializes a new instance of the <see cref="StateTransitionBuilder{TState, TTransition, TPayload}"/> class.
 /// </summary>
 /// <param name="transitionMessage">The transition message.</param>
 /// <param name="stateMachine">The state machine.</param>
 /// <param name="startState">The start state.</param>
 /// <param name="endState">The end state.</param>
 public StateTransitionBuilder(TTransition transitionMessage, StateMachineBuilder <TState, TTransition, TPayload> stateMachine, StateBuilder <TState, TTransition, TPayload> startState, StateBuilder <TState, TTransition, TPayload> endState)
 {
     this.Message      = transitionMessage;
     this.stateMachine = stateMachine;
     this.StartState   = startState;
     this.EndState     = endState;
 }
예제 #2
0
 public StateBuilder(TState state, StateMachineBuilder <TState, TTransition, TPayload> stateMachine)
 {
     this.State        = state;
     this.stateMachine = stateMachine;
     this.nextStates   = new Dictionary <TTransition, StateTransitionBuilder <TState, TTransition, TPayload> >();
 }