C# 클래스 Cinchcast.Roque.Triggers.Schedule

Creates Schedules for ScheduleTrigger, parses cron expressions
파일 보기 프로젝트 열기: BlogTalkRadio/Roque

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Create() 공개 정적인 메소드

Creates a Schedule using cron syntax
public static Create ( string schedule ) : Schedule
schedule string
리턴 Schedule

GetNextExecution() 공개 메소드

public GetNextExecution ( System.DateTime lastExecution ) : DateTime?
lastExecution System.DateTime
리턴 DateTime?

IsValidExecutionDay() 공개 메소드

public IsValidExecutionDay ( System.DateTime time ) : bool
time System.DateTime
리턴 bool

IsValidExecutionDay() 공개 메소드

public IsValidExecutionDay ( byte month, byte day, byte weekDay ) : bool
month byte
day byte
weekDay byte
리턴 bool

IsValidExecutionTime() 공개 메소드

public IsValidExecutionTime ( System.DateTime time ) : bool
time System.DateTime
리턴 bool

IsValidExecutionTime() 공개 메소드

public IsValidExecutionTime ( byte month, byte day, byte weekDay, byte hour, byte minute ) : bool
month byte
day byte
weekDay byte
hour byte
minute byte
리턴 bool