Method IsDue
- Namespace
- Oscova.Agents.Tasks
- Assembly
- Oscova.Agents.dll
IsDue(AgentTaskDefinition, AgentTaskRun?, DateTimeOffset)
Determines whether a task is due to run now.
public static bool IsDue(AgentTaskDefinition task, AgentTaskRun? latestRun, DateTimeOffset now)Parameters
taskAgentTaskDefinition-
The task definition and schedule to evaluate.
latestRunAgentTaskRun?-
The latest known run for the task, if any.
nowDateTimeOffset-
The current UTC timestamp used for evaluation.