/// <summary> /// Called during creation of the <see cref="IScheduler" /> in order to give /// the <see cref="ISchedulerPlugin" /> a chance to Initialize. /// </summary> public virtual Task Initialize(string pluginName, IScheduler scheduler, CancellationToken cancellationToken) { Name = pluginName; Delegate = new JobHistoryDelegate(DataSource, DriverDelegateType, TablePrefix); scheduler.ListenerManager.AddJobListener(this, EverythingMatcher <JobKey> .AllJobs()); return(Task.CompletedTask); }
/// <summary> /// Called during creation of the <see cref="IScheduler" /> in order to give /// the <see cref="ISchedulerPlugin" /> a chance to Initialize. /// </summary> public virtual void Initialize(string pluginName, IScheduler scheduler) { Name = pluginName; Delegate = new JobHistoryDelegate(DataSource, DriverDelegateType, TablePrefix); scheduler.ListenerManager.AddJobListener(this, EverythingMatcher <JobKey> .AllJobs()); }
/// <summary> /// Called during creation of the <see cref="IScheduler" /> in order to give /// the <see cref="ISchedulerPlugin" /> a chance to Initialize. /// </summary> public virtual void Initialize(string pluginName, IScheduler scheduler) { Name = pluginName; Delegate = new JobHistoryDelegate(DataSource, DriverDelegateType, TablePrefix); scheduler.ListenerManager.AddJobListener(this, EverythingMatcher<JobKey>.AllJobs()); }