C# Class Cinchcast.Roque.Triggers.Schedule

Creates Schedules for ScheduleTrigger, parses cron expressions
Afficher le fichier Open project: BlogTalkRadio/Roque

Méthodes publiques

Méthode Description
Create ( string schedule ) : Schedule

Creates a Schedule using cron syntax

GetNextExecution ( System.DateTime lastExecution ) : DateTime?
IsValidExecutionDay ( System.DateTime time ) : bool
IsValidExecutionDay ( byte month, byte day, byte weekDay ) : bool
IsValidExecutionTime ( System.DateTime time ) : bool
IsValidExecutionTime ( byte month, byte day, byte weekDay, byte hour, byte minute ) : bool

Private Methods

Méthode Description
ByteSet ( ) : HashSet
ByteSet ( string cronset, byte minValue, byte maxValue ) : HashSet
ByteSetRange ( byte from, byte to, byte step = 1 ) : HashSet
Schedule ( HashSet minute, HashSet hour, HashSet dayOfMonth, HashSet monthOfYear, HashSet dayOfWeek ) : System

Method Details

Create() public static méthode

Creates a Schedule using cron syntax
public static Create ( string schedule ) : Schedule
schedule string
Résultat Schedule

GetNextExecution() public méthode

public GetNextExecution ( System.DateTime lastExecution ) : DateTime?
lastExecution System.DateTime
Résultat DateTime?

IsValidExecutionDay() public méthode

public IsValidExecutionDay ( System.DateTime time ) : bool
time System.DateTime
Résultat bool

IsValidExecutionDay() public méthode

public IsValidExecutionDay ( byte month, byte day, byte weekDay ) : bool
month byte
day byte
weekDay byte
Résultat bool

IsValidExecutionTime() public méthode

public IsValidExecutionTime ( System.DateTime time ) : bool
time System.DateTime
Résultat bool

IsValidExecutionTime() public méthode

public IsValidExecutionTime ( byte month, byte day, byte weekDay, byte hour, byte minute ) : bool
month byte
day byte
weekDay byte
hour byte
minute byte
Résultat bool