public StateTransitionAutoFallbackParameterizedAsync(IStateMachineAsync <T, TState, TTrigger> stateMachine, TState startState, TState toState, TState triggerState, Func <T, TParam, CancellationToken, Task <bool> > conditionAsync, string name, uint priority) : base(stateMachine.StateAccessor, stateMachine.StateMutator, toState, conditionAsync, name, priority) { _stateMachine = stateMachine; _startState = startState; _triggerState = triggerState; }
public StateTransitionAutoDynamicAsync(IStateMachineAsync <T, TState, TTrigger> stateMachine , TState startStartState , Func <T, TState> targetStateFunction , TState triggerState , string name , uint priority) : base(stateMachine.StateAccessor, stateMachine.StateMutator, name, priority) { _stateMachine = stateMachine; _startState = startStartState; _triggerState = triggerState; _stateFunction = targetStateFunction; }
public static StateTransitionBase <T, TState, TTrigger> GetStateTransition(IStateMachineAsync <T, TState, TTrigger> stateMachine, TState toState, Func <T, CancellationToken, Task <bool> > conditionAsync, TState triggerState, string name, uint priority = 1) { return(new StateTransitionAutoForwardAsync <T, TState, TTrigger>(stateMachine, triggerState, toState, conditionAsync, name, priority)); }
public static StateTransitionBase <T, TState, TTrigger> GetStateTransition(IStateMachineAsync <T, TState, TTrigger> stateMachine, TState startState, Func <T, TState> stateFunction, TState triggerState, string name, uint priority = 1) { return(new StateTransitionAutoDynamicAsync <T, TState, TTrigger>(stateMachine, startState, stateFunction, triggerState, name, priority)); }
public static StateTransitionBase <T, TState, TTrigger> GetStateTransition <TRequest>(IStateMachineAsync <T, TState, TTrigger> stateMachine, TState startState, Func <T, TRequest, TState> stateFunction, TState triggerState, string name, uint priority = 1) where TRequest : class { return(new StateTransitionAutoDynamicParameterizedAsync <T, TState, TTrigger, TRequest>(stateMachine, startState, stateFunction, triggerState, name, priority)); }
public static StateTransitionBase <T, TState, TTrigger> GetStateTransition <TParam>(IStateMachineAsync <T, TState, TTrigger> stateMachine, TState startState, TState toState, Func <T, TParam, CancellationToken, Task <bool> > conditionAsync, TState triggerState, string name, uint priority = 1) where TParam : class { return(new StateTransitionAutoFallbackParameterizedAsync <T, TState, TTrigger, TParam>(stateMachine, startState, toState, triggerState, conditionAsync, name, priority)); }
public static StateTransitionBase <T, TState, TTrigger> GetStateTransition <TRequest>(IStateMachineAsync <T, TState, TTrigger> stateMachine, Func <T, TRequest, TState> stateFuncAsync, string name, uint priority = 1) where TRequest : class { return(new StateTransitionDynamicParameterized <T, TState, TTrigger, TRequest>(stateMachine.StateAccessor, stateMachine.StateMutator, stateFuncAsync, name, priority)); }
public static StateTransitionBase <T, TState, TTrigger> GetStateTransition(IStateMachineAsync <T, TState, TTrigger> stateMachine, Func <T, TState> stateFunc, string name, uint priority = 1) { return(new StateTransitionDynamic <T, TState, TTrigger>(stateMachine.StateAccessor, stateMachine.StateMutator, stateFunc, name, priority)); }
/// <summary> /// Constructor. /// </summary> /// <param name="state">The state being configured.</param> /// <param name="stateMachine">The state machine this configuration is associated with.</param> internal StateConfigurationAsync(TState state, IStateMachineAsync <T, TState, TTrigger> stateMachine) : base(state, stateMachine.StateAccessor, stateMachine.StateMutator) { _stateMachine = stateMachine; }
public TestStateConfigurationAsync(TState state, IStateMachineAsync <T, TState, TTrigger> stateMachine) : base(state, stateMachine) { }