C# Class NCrontab.Advanced.Filters.StepFilter

Handles step values (i.e. */5, 2/7) For example, */5 in the minutes field indicates every 5 minutes
Inheritance: ICronFilter, ITimeFilter
Datei anzeigen Open project: jcoutch/NCrontab-Advanced Class Usage Examples

Private Properties

Property Type Description
IsMatch bool

Public Methods

Method Description
First ( ) : int
IsMatch ( System.DateTime value ) : bool

Checks if the value is accepted by the filter

Next ( int value ) : int?
StepFilter ( int start, int step, CrontabFieldKind kind ) : System

Constructs a new RangeFilter instance

ToString ( ) : string

Private Methods

Method Description
IsMatch ( int evalValue ) : bool

Method Details

First() public method

public First ( ) : int
return int

IsMatch() public method

Checks if the value is accepted by the filter
public IsMatch ( System.DateTime value ) : bool
value System.DateTime The value to check
return bool

Next() public method

public Next ( int value ) : int?
value int
return int?

StepFilter() public method

Constructs a new RangeFilter instance
public StepFilter ( int start, int step, CrontabFieldKind kind ) : System
start int The start of the range
step int
kind CrontabFieldKind The crontab field kind to associate with this filter
return System

ToString() public method

public ToString ( ) : string
return string