Interface IScheduledTask
Interface IScheduledTaskWorker
Namespace: MediaBrowser.Model.Tasks
Assembly: MediaBrowser.Model.dll
Syntax
public interface IScheduledTask
Properties
Category
Gets the category.
Declaration
string Category { get; }
Property Value
Type | Description |
---|---|
System. |
The category. |
Description
Gets the description.
Declaration
string Description { get; }
Property Value
Type | Description |
---|---|
System. |
The description. |
Key
Declaration
string Key { get; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets the name of the task
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System. |
The name. |
Methods
Execute(CancellationToken, IProgress<Double>)
Executes the task
Declaration
Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
Parameters
Type | Name | Description |
---|---|---|
System. |
cancellationToken | The cancellation token. |
System. |
progress | The progress. |
Returns
Type | Description |
---|---|
System. |
Task. |
GetDefaultTriggers()
Gets the default triggers.
Declaration
IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
Returns
Type | Description |
---|---|
System. |
IEnumerable{BaseTaskTrigger}. |