public BaseScheduledJob(IDistributedLock distributedLock, IOptions <CommonOptions> options, ILogger <BaseScheduledJob> logger, IScheduledJobStore scheduledJobStore) { DistributedLock = distributedLock; Options = options.Value; Logger = logger; ScheduledJobStore = scheduledJobStore; }
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>(); }
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 ScheduledTransport(IScheduledJobStore scheduledJobStore) { _scheduledJobStore = scheduledJobStore; }