Interface IScheduledTask
Defines a common interface for scheduled tasks.
public interface IScheduledTask
- Extension Methods
Methods
Execute(ScheduledTaskConfigurationInfo, CancellationToken)
Executes the task given in a task info.
Task<ScheduledTaskExecutionResult> Execute(ScheduledTaskConfigurationInfo task, CancellationToken cancellationToken)
Parameters
task
ScheduledTaskConfigurationInfoContainer with task information.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ScheduledTaskExecutionResult>
Textual description of task run's failure if any.