Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface ITaskManager

    Inherited Members
    System.IDisposable.Dispose()
    Namespace: MediaBrowser.Model.Tasks
    Assembly: MediaBrowser.Model.dll
    Syntax
    public interface ITaskManager : IDisposable

    Properties

    ScheduledTasks

    Gets the list of Scheduled Tasks

    Declaration
    IScheduledTaskWorker[] ScheduledTasks { get; }
    Property Value
    Type Description
    IScheduledTaskWorker[]

    The scheduled tasks.

    Methods

    AddTasks(IEnumerable<IScheduledTask>)

    Adds the tasks.

    Declaration
    void AddTasks(IEnumerable<IScheduledTask> tasks)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IScheduledTask> tasks

    The tasks.

    Cancel(IScheduledTaskWorker)

    Declaration
    void Cancel(IScheduledTaskWorker task)
    Parameters
    Type Name Description
    IScheduledTaskWorker task

    CancelIfRunning<T>()

    Cancels if running.

    Declaration
    bool CancelIfRunning<T>()
        where T : IScheduledTask
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    CancelIfRunningAndQueue<T>()

    Cancels if running and queue.

    Declaration
    void CancelIfRunningAndQueue<T>()
        where T : IScheduledTask
    Type Parameters
    Name Description
    T

    CancelIfRunningAndQueue<T>(TaskOptions)

    Cancels if running and queue.

    Declaration
    void CancelIfRunningAndQueue<T>(TaskOptions options)
        where T : IScheduledTask
    Parameters
    Type Name Description
    TaskOptions options

    Task options.

    Type Parameters
    Name Description
    T

    Execute(IScheduledTaskWorker, TaskOptions)

    Declaration
    Task Execute(IScheduledTaskWorker task, TaskOptions options)
    Parameters
    Type Name Description
    IScheduledTaskWorker task
    TaskOptions options
    Returns
    Type Description
    System.Threading.Tasks.Task

    Execute<T>()

    Declaration
    void Execute<T>()
        where T : IScheduledTask
    Type Parameters
    Name Description
    T

    QueueIfNotRunning<T>()

    Declaration
    void QueueIfNotRunning<T>()
        where T : IScheduledTask
    Type Parameters
    Name Description
    T

    QueueScheduledTask(IScheduledTask, TaskOptions)

    Queues the scheduled task.

    Declaration
    void QueueScheduledTask(IScheduledTask task, TaskOptions options)
    Parameters
    Type Name Description
    IScheduledTask task
    TaskOptions options

    QueueScheduledTask<T>()

    Queues the scheduled task.

    Declaration
    void QueueScheduledTask<T>()
        where T : IScheduledTask
    Type Parameters
    Name Description
    T

    QueueScheduledTask<T>(TaskOptions)

    Queues the scheduled task.

    Declaration
    void QueueScheduledTask<T>(TaskOptions options)
        where T : IScheduledTask
    Parameters
    Type Name Description
    TaskOptions options

    Task options.

    Type Parameters
    Name Description
    T

    RunTaskOnNextStartup(String)

    Declaration
    void RunTaskOnNextStartup(string key)
    Parameters
    Type Name Description
    System.String key

    Events

    TaskCompleted

    Declaration
    event EventHandler<TaskCompletionEventArgs> TaskCompleted
    Event Type
    Type Description
    System.EventHandler<TaskCompletionEventArgs>

    TaskExecuting

    Declaration
    event EventHandler<GenericEventArgs<IScheduledTaskWorker>> TaskExecuting
    Event Type
    Type Description
    System.EventHandler<GenericEventArgs<IScheduledTaskWorker>>

    Extension Methods

    Extensions.JsonClone<T>(T, IJsonSerializer)
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.