示例#1
0
 public ForceClaimHumanTaskInstanceCommandHandler(
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
     ILogger <ForceClaimHumanTaskInstanceCommandHandler> logger)
 {
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
     _logger = logger;
 }
示例#2
0
 public NominateHumanTaskInstanceCommandHandler(
     ILogger <NominateHumanTaskInstanceCommandHandler> logger,
     IAuthorizationHelper authorizationHelper,
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository)
 {
     _logger = logger;
     _authorizationHelper = authorizationHelper;
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
 }
示例#3
0
 public ClaimHumanTaskInstanceCommandHandler(
     IHumanTaskInstanceQueryRepository humanTaskInstanceQueryRepository,
     IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
     IAuthorizationHelper authorizationHelper,
     ILogger <ClaimHumanTaskInstanceCommandHandler> logger)
 {
     _humanTaskInstanceQueryRepository   = humanTaskInstanceQueryRepository;
     _humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
     _authorizationHelper = authorizationHelper;
     _logger = logger;
 }
示例#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>();
        }
示例#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;
 }
示例#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;
 }