CrontabSchedule Class

Namespace:
Weavy.Core.Cron
Assembly:
Weavy.Core.dll

Represents a schedule initialized from the crontab expression.

public sealed class CrontabSchedule
Inheritance:
System.Object → CrontabSchedule

Methods

GetNextOccurrence(DateTime) Gets the next occurrence of this schedule starting with a base time.
GetNextOccurrence(DateTime, DateTime) Gets the next occurrence of this schedule starting with a base time and up to an end time limit.
GetNextOccurrences(DateTime, DateTime) Enumerates all the occurrences of this schedule starting with a base time and up to an end time limit. This method uses deferred execution such that the occurrences are only calculated as they are enumerated.
Parse(string)
ToString() Returns a string in crontab expression (expanded) that represents this schedule.
TryParse(string)

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
NextFrom(CrontabSchedule, DateTime?) Gets the next occurrence of this schedule starting with a base time.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.