Example #1
0
 public WorkflowService(
     IWorkflowDefinitionProvider workflowDefinitionProvider,
     IUserWorkflowMappingService userWorkflowMappingService,
     IWorkflowDefinitionViewModelCreator viewModelCreator
     )
 {
     _workflowDefinitionProvider = workflowDefinitionProvider;
     _userWorkflowMappingService = userWorkflowMappingService;
     _viewModelCreator           = viewModelCreator;
 }
Example #2
0
 public WorkflowService(
     IWorkflowRepository repository,
     IWorkflowDefinitionProvider workflowDefinitionProvider,
     IUserWorkflowMappingService userWorkflowMappingService,
     IWorkflowDefinitionDtoCreator dtoCreator
     )
 {
     this.repository = repository ?? throw new ArgumentNullException(nameof(repository));
     this.workflowDefinitionProvider = workflowDefinitionProvider;
     this.userWorkflowMappingService = userWorkflowMappingService;
     this.viewModelCreator           = dtoCreator;
 }
Example #3
0
 public WorkflowService(
     TContext context,
     ILogger <WorkflowService <TContext> > logger,
     IWorkflowDefinitionProvider workflowDefinitionProvider,
     IUserWorkflowMappingService userWorkflowMappingService,
     IWorkflowDefinitionViewModelCreator viewModelCreator,
     IUserContextService userContext
     )
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _logger  = logger;
     _workflowDefinitionProvider = workflowDefinitionProvider;
     _userWorkflowMappingService = userWorkflowMappingService;
     _viewModelCreator           = viewModelCreator;
     _userContext = userContext;
 }