예제 #1
0
 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));
 }
예제 #2
0
        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);
        }
예제 #3
0
 public MoveRequest(FlowStepService stepService)
 {
     StepService = stepService ?? throw new ArgumentNullException(nameof(stepService));
 }