Updated to .net core 3.0

This commit is contained in:
tidusjar 2019-11-05 22:04:37 +00:00
parent b07833e0e8
commit 379ffeddba
13 changed files with 66 additions and 163 deletions

View file

@ -39,11 +39,11 @@ namespace Ombi.Schedule
// .Build();
//}
public static async Task UseQuartz(this IApplicationBuilder app)
public static async Task UseQuartz(this IServiceProvider app)
{
// Job Factory through IOC container
var jobFactory = (IJobFactory)app.ApplicationServices.GetService(typeof(IJobFactory));
var service = (ISettingsService<JobSettings>)app.ApplicationServices.GetService(typeof(ISettingsService<JobSettings>));
var jobFactory = (IJobFactory)app.GetService(typeof(IJobFactory));
var service = (ISettingsService<JobSettings>)app.GetService(typeof(ISettingsService<JobSettings>));
var s = service.GetSettings();
// Set job factory
OmbiQuartz.Instance.UseJobFactory(jobFactory);