public static void UseAutofacActivator(this BackgroundJobManager backgroundJobManager) { AutofacActivator autofacActivator = new AutofacActivator(); backgroundJobManager.SetJobActivator(autofacActivator); }