Interface ITaskManager
Inherited Members
System.IDisposable.Dispose()
Assembly: MediaBrowser.Model.dll
public interface ITaskManager : IDisposable
Properties
Gets the list of Scheduled Tasks
Declaration
IScheduledTaskWorker[] ScheduledTasks { get; }
Property Value
Methods
Declaration
void AddTasks(IEnumerable<IScheduledTask> tasks)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IScheduledTask> |
tasks |
The tasks.
|
Declaration
void Cancel(IScheduledTaskWorker task)
Parameters
Declaration
bool CancelIfRunning<T>()
where T : IScheduledTask
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Cancels if running and queue.
Declaration
void CancelIfRunningAndQueue<T>()
where T : IScheduledTask
Type Parameters
Cancels if running and queue.
Declaration
void CancelIfRunningAndQueue<T>(TaskOptions options)
where T : IScheduledTask
Parameters
Type |
Name |
Description |
TaskOptions |
options |
Task options.
|
Type Parameters
Declaration
Task Execute(IScheduledTaskWorker task, TaskOptions options)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
void Execute<T>()
where T : IScheduledTask
Type Parameters
Declaration
void QueueIfNotRunning<T>()
where T : IScheduledTask
Type Parameters
Queues the scheduled task.
Declaration
void QueueScheduledTask(IScheduledTask task, TaskOptions options)
Parameters
Queues the scheduled task.
Declaration
void QueueScheduledTask<T>()
where T : IScheduledTask
Type Parameters
Queues the scheduled task.
Declaration
void QueueScheduledTask<T>(TaskOptions options)
where T : IScheduledTask
Parameters
Type |
Name |
Description |
TaskOptions |
options |
Task options.
|
Type Parameters
Declaration
void RunTaskOnNextStartup(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Events
Declaration
event EventHandler<TaskCompletionEventArgs> TaskCompleted
Event Type
Declaration
event EventHandler<GenericEventArgs<IScheduledTaskWorker>> TaskExecuting
Event Type
Extension Methods