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.String | The category. |
Description
Gets the description.
Declaration
string Description { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The description. |
Key
Declaration
string Key { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Name
Gets the name of the task
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The name. |
Methods
Execute(CancellationToken, IProgress<Double>)
Executes the task
Declaration
Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The cancellation token. |
| System.IProgress<System.Double> | progress | The progress. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | Task. |
GetDefaultTriggers()
Gets the default triggers.
Declaration
IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<TaskTriggerInfo> | IEnumerable{BaseTaskTrigger}. |