Click or drag to resize
Cron Class
Helper class that provides common values for the cron expressions.
Inheritance Hierarchy
SystemObject
  HangfireCron

Namespace: Hangfire
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public class Cron

The Cron type exposes the following members.

Constructors
  NameDescription
Public methodCron
Initializes a new instance of the Cron class
Top
Methods
  NameDescription
Public methodStatic memberDaily
Returns cron expression that fires every day at 00:00 UTC.
Public methodStatic memberDaily(Int32)
Returns cron expression that fires every day at the first minute of the specified hour in UTC.
Public methodStatic memberDaily(Int32, Int32)
Returns cron expression that fires every day at the specified hour and minute in UTC.
Public methodStatic memberGetDescription Obsolete.
Converts a Cron expression string into a description.
Public methodStatic memberHourly
Returns cron expression that fires every hour at the first minute.
Public methodStatic memberHourly(Int32)
Returns cron expression that fires every hour at the specified minute.
Public methodStatic memberMinutely
Returns cron expression that fires every minute.
Public methodStatic memberMonthly
Returns cron expression that fires every month at 00:00 UTC of the first day of month.
Public methodStatic memberMonthly(Int32)
Returns cron expression that fires every month at 00:00 UTC of the specified day of month.
Public methodStatic memberMonthly(Int32, Int32)
Returns cron expression that fires every month at the first minute of the specified day of month and hour in UTC.
Public methodStatic memberMonthly(Int32, Int32, Int32)
Returns cron expression that fires every month at the specified day of month, hour and minute in UTC.
Public methodStatic memberWeekly
Returns cron expression that fires every week at Monday, 00:00 UTC.
Public methodStatic memberWeekly(DayOfWeek)
Returns cron expression that fires every week at 00:00 UTC of the specified day of the week.
Public methodStatic memberWeekly(DayOfWeek, Int32)
Returns cron expression that fires every week at the first minute of the specified day of week and hour in UTC.
Public methodStatic memberWeekly(DayOfWeek, Int32, Int32)
Returns cron expression that fires every week at the specified day of week, hour and minute in UTC.
Public methodStatic memberYearly
Returns cron expression that fires every year on Jan, 1st at 00:00 UTC.
Public methodStatic memberYearly(Int32)
Returns cron expression that fires every year in the first day at 00:00 UTC of the specified month.
Public methodStatic memberYearly(Int32, Int32)
Returns cron expression that fires every year at 00:00 UTC of the specified month and day of month.
Public methodStatic memberYearly(Int32, Int32, Int32)
Returns cron expression that fires every year at the first minute of the specified month, day and hour in UTC.
Public methodStatic memberYearly(Int32, Int32, Int32, Int32)
Returns cron expression that fires every year at the specified month, day, hour and minute in UTC.
Top
See Also