/// <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)); }
/// <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)); }
/// <summary> /// Returns cron expression that fires every day at the first minute of /// the specified hour in UTC. /// </summary> /// <param name="hour">The hour in which the schedule will be activated (0-23).</param> public static string Daily(int hour) { return(HangfireCron.Daily(hour, 0)); }
/// <summary> /// Returns cron expression that fires every week at Monday, 00:00 UTC. /// </summary> public static string Weekly() { return(HangfireCron.Weekly(DayOfWeek.Monday)); }
/// <summary> /// Returns cron expression that fires every year at the first minute of the /// specified month, day and hour in UTC. /// </summary> /// <param name="month">The month in which the schedule will be activated (1-12).</param> /// <param name="day">The day of month in which the schedule will be activated (1-31).</param> /// <param name="hour">The hour in which the schedule will be activated (0-23).</param> public static string Yearly(int month, int day, int hour) { return(HangfireCron.Yearly(month, day, hour, 0)); }
/// <summary> /// Returns cron expression that fires every day at 00:00 UTC. /// </summary> public static string Daily() { return(HangfireCron.Daily(0)); }
/// <summary> /// Returns cron expression that fires every hour at the first minute. /// </summary> public static string Hourly() { return(HangfireCron.Hourly(0)); }
/// <summary> /// Returns cron expression that fires every year in the first day at 00:00 UTC /// of the specified month. /// </summary> /// <param name="month">The month in which the schedule will be activated (1-12).</param> public static string Yearly(int month) { return(HangfireCron.Yearly(month, 1)); }
/// <summary> /// Returns cron expression that fires every year on Jan, 1st at 00:00 UTC. /// </summary> public static string Yearly() { return(HangfireCron.Yearly(1)); }
/// <summary> /// Returns cron expression that fires every month at the first minute of the /// specified day of month and hour in UTC. /// </summary> /// <param name="day">The day of month in which the schedule will be activated (1-31).</param> /// <param name="hour">The hour in which the schedule will be activated (0-23).</param> public static string Monthly(int day, int hour) { return(HangfireCron.Monthly(day, hour, 0)); }
/// <summary> /// Returns cron expression that fires every month at 00:00 UTC of the first /// day of month. /// </summary> public static string Monthly() { return(HangfireCron.Monthly(1)); }