Esempio n. 1
0
 /// <summary>
 /// Returns cron expression that fires every week at 00:00 UTC of the specified
 /// day of the week.
 /// </summary>
 /// <param name="dayOfWeek">The day of week in which the schedule will be activated.</param>
 public static string Weekly(DayOfWeek dayOfWeek)
 {
     return(HangfireCron.Weekly(dayOfWeek, 0));
 }
Esempio n. 2
0
 /// <summary>
 /// Returns cron expression that fires every week at the first minute
 /// of the specified day of week and hour in UTC.
 /// </summary>
 /// <param name="dayOfWeek">The day of week in which the schedule will be activated.</param>
 /// <param name="hour">The hour in which the schedule will be activated (0-23).</param>
 public static string Weekly(DayOfWeek dayOfWeek, int hour)
 {
     return(HangfireCron.Weekly(dayOfWeek, hour, 0));
 }
Esempio n. 3
0
 /// <summary>
 /// Returns cron expression that fires every week at Monday, 00:00 UTC.
 /// </summary>
 public static string Weekly()
 {
     return(HangfireCron.Weekly(DayOfWeek.Monday));
 }