Table of Contents

Class JobOptions

Namespace
VpnHood.Net.Toolkit.Jobs
Assembly
VpnHood.Net.Toolkit.dll

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

bool

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

TimeSpan

DueTime

Gets the time from the job's start to its first run, or null for Interval.

public TimeSpan? DueTime { get; init; }

Property Value

TimeSpan?

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

TimeSpan

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; }

Property Value

string