Class JobOptions
Provides the options of a Job.
public record JobOptions : IEquatable<JobOptions>
- Inheritance
-
JobOptions
- Implements
- Inherited Members
Properties
AutoStart
Gets a value indicating whether the job starts when it is made. The default is true.
public bool AutoStart { get; init; }
Property Value
DefaultInterval
Gets or sets, process-wide, the interval of options that set none. The default is 30 seconds.
public static TimeSpan DefaultInterval { get; set; }
Property Value
DueTime
public TimeSpan? DueTime { get; init; }
Property Value
Interval
Gets the time from the end of a run to the next one. The default is DefaultInterval.
public TimeSpan Interval { get; init; }
Property Value
MaxRetry
Gets how many failures in a row the job runs again after: the next failure stops it. A success resets the count. null, the default, never stops it.
public int? MaxRetry { get; init; }
Property Value
- int?
Name
Gets the job's name, for the log, or null for NoName.
public string? Name { get; init; }