Table of Contents

Interface IScheduledTask

Namespace
CMS.Scheduler
Assembly
CMS.Scheduler.dll

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 ScheduledTaskConfigurationInfo

Container with task information.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ScheduledTaskExecutionResult>

Textual description of task run's failure if any.