public Scheduler(IMutex mutex, IServiceScopeFactory scopeFactory, IDispatcher dispatcher) { this._tasks = new ConcurrentDictionary <string, ScheduledEvent>(); this._mutex = mutex; this._scopeFactory = scopeFactory; this._dispatcher = dispatcher; }
public Scheduler(IMutex mutex, IServiceScopeFactory scopeFactory, IDispatcher dispatcher) { this._tasks = new ConcurrentDictionary <string, ScheduledTask>(); this._mutex = mutex; this._scopeFactory = scopeFactory; this._dispatcher = dispatcher; this._currentWorkerName = "_default"; }
public JobScheduler(ILoggerFactory loggerFactory, IMutex mutex, JobSchedulerOptions options) { EnsureArg.IsNotNull(loggerFactory, nameof(loggerFactory)); EnsureArg.IsNotNull(options, nameof(options)); this.logger = loggerFactory.CreateLogger <JobScheduler>(); this.mutex = mutex ?? new InProcessMutex(null); this.Options = options; }
public JobScheduler(ILoggerFactory loggerFactory, ITracer tracer, IMutex mutex) : this(loggerFactory, tracer, mutex, null) { }
public void Register(IMutex mutex) { _mutexes.Add(mutex); }
public Scheduler(IMutex mutex, IServiceScopeFactory scopeFactory) { this._tasks = new ConcurrentBag <ScheduledEvent>(); this._mutex = mutex; this._scopeFactory = scopeFactory; }