public static void Configure(IContainer container)
        {
            var autofacPerLifetimeScopeJobActivator = new AutofacPerLifetimeScopeJobActivator(container);

            JobActivator.Current = autofacPerLifetimeScopeJobActivator;
            GlobalJobFilters.Filters.Add(new AutofacContainerPerJobFilterAttribute(autofacPerLifetimeScopeJobActivator));
        }
 public AutofacContainerPerJobFilterAttribute(AutofacPerLifetimeScopeJobActivator autofacPerLifetimeScopeJobActivator)
 {
     _autofacPerLifetimeScopeJobActivator = autofacPerLifetimeScopeJobActivator;
 }