public static IGlobalConfiguration UseRecurringJobAdmin(this IGlobalConfiguration config, [NotNull] params string[] assemblies) { if (assemblies == null) { throw new ArgumentNullException(nameof(assemblies)); } StorageAssemblySingleton.GetInstance().SetCurrentAssembly(assemblies: assemblies.Select(x => Type.GetType(x).Assembly).ToArray()); PeriodicJobBuilder.GetAllJobs(); CreateManagmentJob(); return(config); }
public static IGlobalConfiguration UseRecurringJobAdmin(this IGlobalConfiguration config, bool includeReferences = false, [NotNull] params Assembly[] assemblies) { if (assemblies == null) { throw new ArgumentNullException(nameof(assemblies)); } StorageAssemblySingleton.GetInstance().SetCurrentAssembly(includeReferences, assemblies); PeriodicJobBuilder.GetAllJobs(); CreateManagmentJob(); return(config); }
public static IGlobalConfiguration UseRecurringJobAdmin(this IGlobalConfiguration config, Assembly assembly) { PeriodicJobBuilder.GetAllJobs(assembly); CreateManagmentJob(); return(config); }