using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace MediaBrowser.Model.Tasks { /// /// Interface IScheduledTaskWorker. /// public interface IScheduledTask { /// /// Gets the name of the task. /// /// The name. string Name { get; } /// /// Gets the key of the task. /// string Key { get; } /// /// Gets the description. /// /// The description. string Description { get; } /// /// Gets the category. /// /// The category. string Category { get; } /// /// Executes the task. /// /// The progress. /// The cancellation token. /// Task. Task ExecuteAsync(IProgress progress, CancellationToken cancellationToken); /// /// Gets the default triggers that define when the task will run. /// /// The default triggers that define when the task will run. IEnumerable GetDefaultTriggers(); } }