Beispiel #1
0
 public ForceClaimHumanTaskInstanceCommandHandler(
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
     ILogger <ForceClaimHumanTaskInstanceCommandHandler> logger)
 {
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
     _logger = logger;
 }
Beispiel #2
0
 public NominateHumanTaskInstanceCommandHandler(
     ILogger <NominateHumanTaskInstanceCommandHandler> logger,
     IAuthorizationHelper authorizationHelper,
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository)
 {
     _logger = logger;
     _authorizationHelper = authorizationHelper;
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
 }
Beispiel #3
0
 public ClaimHumanTaskInstanceCommandHandler(
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
     IAuthorizationHelper authorizationHelper,
     ILogger <ClaimHumanTaskInstanceCommandHandler> logger)
 {
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
     _authorizationHelper = authorizationHelper;
     _logger = logger;
 }
Beispiel #4
0
        public ProcessActivationTimerJob(IServiceScopeFactory serviceScopeFactory,
                                         IDistributedLock distributedLock,
                                         IOptions <CommonOptions> options,
                                         ILogger <BaseScheduledJob> logger,
                                         IScheduledJobStore scheduledJobStore) : base(distributedLock, options, logger, scheduledJobStore)
        {
            var serviceProvider = serviceScopeFactory.CreateScope().ServiceProvider;

            _humanTaskInstanceQueryRepository   = serviceProvider.GetService <IHumanTaskInstanceQueryRepository>();
            _humanTaskInstanceCommandRepository = serviceProvider.GetService <IHumanTaskInstanceCommandRepository>();
        }
Beispiel #5
0
 public StartHumanTaskInstanceCommandHandler(
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
     IAuthorizationHelper authorizationHelper,
     IMediator mediator,
     ILogger <StartHumanTaskInstanceCommandHandler> logger)
 {
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
     _authorizationHelper = authorizationHelper;
     _mediator            = mediator;
     _logger = logger;
 }
Beispiel #6
0
 public InstantiateSubTaskCommandHandler(
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
     IParameterParser parameterParser,
     IMediator mediator,
     ILogger <InstantiateSubTaskCommandHandler> logger)
 {
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
     _parameterParser = parameterParser;
     _mediator        = mediator;
     _logger          = logger;
 }
        public ProcessDeadLinesJob(IParameterParser parameterParser,
                                   IMediator mediator,
                                   IDistributedLock distributedLock,
                                   IOptions <CommonOptions> options,
                                   ILogger <BaseScheduledJob> logger,
                                   IScheduledJobStore scheduledJobStore,
                                   IServiceScopeFactory serviceScopeFactory) : base(distributedLock, options, logger, scheduledJobStore)
        {
            _parameterParser = parameterParser;
            _mediator        = mediator;
            var serviceProvider = serviceScopeFactory.CreateScope().ServiceProvider;

            _humanTaskInstanceQueryRepository   = serviceProvider.GetService <IHumanTaskInstanceQueryRepository>();
            _humanTaskInstanceCommandRepository = serviceProvider.GetService <IHumanTaskInstanceCommandRepository>();
        }
 public CompleteHumanTaskInstanceCommandHandler(
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
     IParameterParser parameteParser,
     IHttpClientFactory httpClientFactory,
     IServiceProvider serviceProvider,
     IOptions <HumanTaskServerOptions> options,
     ILogger <CompleteHumanTaskInstanceCommandHandler> logger)
 {
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
     _parameterParser   = parameteParser;
     _serviceProvider   = serviceProvider;
     _httpClientFactory = httpClientFactory;
     _options           = options.Value;
     _logger            = logger;
 }
 public CreateHumanTaskInstanceCommandHandler(
     IHumanTaskDefQueryRepository humanTaskDefQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
     IHumanTaskDefCommandRepository humanTaskDefCommandRepository,
     IAuthorizationHelper authorizationHelper,
     IParameterParser parameterParser,
     IDeadlineParser deadLineParser,
     ILogger <CreateHumanTaskInstanceCommandHandler> logger)
 {
     _humanTaskDefQueryRepository        = humanTaskDefQueryRepository;
     _humanTaskDefCommandRepository      = humanTaskDefCommandRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
     _authorizationHelper = authorizationHelper;
     _parameterParser     = parameterParser;
     _deadlineParser      = deadLineParser;
     _logger = logger;
 }