mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(archival): 🐛 restore AddOrUpdateRecurringJob
This commit is contained in:
parent
6312164aa9
commit
574ed2b1fa
1 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,11 @@ public static void ScheduleBackgroundJob(this IRequest request, TimeSpan delay)
|
|||
{
|
||||
BackgroundJob.Schedule<IMediator>(m => m.Send(request, CancellationToken.None), delay);
|
||||
}
|
||||
|
||||
public static void AddOrUpdateRecurringJob(this IRequest request, Func<string> cronExpression)
|
||||
{
|
||||
RecurringJob.AddOrUpdate<IMediator>(m => m.Send(request, CancellationToken.None), cronExpression);
|
||||
}
|
||||
}
|
||||
|
||||
internal static class HangfireExtension
|
||||
|
|
|
|||
Loading…
Reference in a new issue