Start the scheduler after the jobs have been assigned

This commit is contained in:
tidusjar 2019-04-24 10:27:15 +01:00
parent ad6c72f12a
commit 27a7e96f75
3 changed files with 7 additions and 5 deletions

View file

@ -181,7 +181,7 @@ namespace Ombi.DependencyInjection
public static void RegisterJobs(this IServiceCollection services)
{
services.AddTransient<IJobFactory, IoCJobFactory>(provider => new IoCJobFactory(provider));
services.AddSingleton<IJobFactory, IoCJobFactory>(provider => new IoCJobFactory(provider));
services.AddTransient<IBackgroundJobClient, BackgroundJobClient>();
services.AddTransient<IPlexContentSync, PlexContentSync>();