/// <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);
 }
Exemplo n.º 2
0
 /// <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());
 }