Skip to content

Commit

Permalink
add "UsePersistentStore<T> where T : IJobStore" in DI Extension (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
kondr1 committed Aug 19, 2022
1 parent fbf8c2f commit e25efff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public interface IServiceCollectionQuartzConfigurator : IPropertyConfigurer, IPr

void UseInMemoryStore(Action<SchedulerBuilder.InMemoryStoreOptions>? configure = null);
void UsePersistentStore(Action<SchedulerBuilder.PersistentStoreOptions> configure);
void UsePersistentStore<T>(Action<SchedulerBuilder.PersistentStoreOptions> configure) where T : IJobStore;
void UseThreadPool<T>(Action<SchedulerBuilder.ThreadPoolOptions>? configure = null) where T : IThreadPool;
void UseDefaultThreadPool(int maxConcurrency, Action<SchedulerBuilder.ThreadPoolOptions>? configure = null);
void UseDefaultThreadPool(Action<SchedulerBuilder.ThreadPoolOptions>? configure = null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public void UsePersistentStore(Action<SchedulerBuilder.PersistentStoreOptions> c
{
schedulerBuilder.UsePersistentStore(configure);
}
public void UsePersistentStore<T>(Action<SchedulerBuilder.PersistentStoreOptions> configure) where T : IJobStore
{
schedulerBuilder.UsePersistentStore<T>(configure);
}

public void UseMicrosoftDependencyInjectionJobFactory(Action<JobFactoryOptions>? configure = null)
{
Expand Down

0 comments on commit e25efff

Please sign in to comment.