Class CadenceTimer
Inherited Members
Namespace: CrashCABN.PullIngestion
Assembly: CrashCABN.PullIngestion.dll
Syntax
public static class CadenceTimer
Methods
View SourceGetIndex(TimeSpan, TimeSpan)
Declaration
public static int GetIndex(TimeSpan timeOfDay, TimeSpan cadence)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeOfDay | |
TimeSpan | cadence |
Returns
Type | Description |
---|---|
int |
ShouldRun(DateTime, DateTime, TimeSpan)
Declaration
public static bool ShouldRun(DateTime now, DateTime lastRun, TimeSpan cadence)
Parameters
Type | Name | Description |
---|---|---|
DateTime | now | |
DateTime | lastRun | |
TimeSpan | cadence |
Returns
Type | Description |
---|---|
bool |