public InitFlowRequest( IStateManager stateManager, FlowInstanceService instanceService, FlowStepService stepService) { _stateManager = stateManager ?? throw new ArgumentNullException(nameof(stateManager)); InstanceService = instanceService ?? throw new ArgumentNullException(nameof(instanceService)); StepService = stepService ?? throw new ArgumentNullException(nameof(stepService)); }
public FlowManager(IStateManager stateManager, IFlowLogger logger) { StateManager = stateManager ?? throw new ArgumentNullException(nameof(stateManager)); Logger = logger ?? throw new ArgumentNullException(nameof(logger)); InstanceService = new FlowInstanceService(StateManager); TypeService = new FlowTypeService(StateManager); StateService = new FlowStateService(StateManager); TransitionService = new FlowTransitionService(StateManager); StepService = new FlowStepService(StateManager); }
public MoveRequest(FlowStepService stepService) { StepService = stepService ?? throw new ArgumentNullException(nameof(stepService)); }