public void UseJobFactory <T>() where T : IJobFactory { schedulerBuilder.UseJobFactory <T>(); services.TryAddSingleton(typeof(IJobFactory), typeof(T)); }