public static void AddOrUpdate( this IRecurringManager manager, string recurringJobId, Job job, string cronExpression, TimeZoneInfo timeZone, string queue, bool onlyIfLastFinishedOrFailed) { if (manager == null) { throw new ArgumentNullException(nameof(manager)); } if (timeZone == null) { throw new ArgumentNullException(nameof(timeZone)); } if (queue == null) { throw new ArgumentNullException(nameof(queue)); } manager.AddOrUpdate( recurringJobId, job, cronExpression, new RecurringJobOptions { QueueName = queue, TimeZone = timeZone, OnlyIfLastFinishedOrFailed = onlyIfLastFinishedOrFailed }); }