You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/Tasks/ITaskTrigger.cs

35 lines
1013 B

using System;
using MediaBrowser.Model.Events;
9 years ago
using MediaBrowser.Model.Logging;
12 years ago
namespace MediaBrowser.Model.Tasks
12 years ago
{
/// <summary>
/// Interface ITaskTrigger
/// </summary>
public interface ITaskTrigger
{
/// <summary>
/// Fires when the trigger condition is satisfied and the task should run
/// </summary>
event EventHandler<GenericEventArgs<TaskExecutionOptions>> Triggered;
12 years ago
/// <summary>
/// Stars waiting for the trigger action
/// </summary>
9 years ago
void Start(TaskResult lastResult, ILogger logger, string taskName, bool isApplicationStartup);
12 years ago
/// <summary>
/// Stops waiting for the trigger action
/// </summary>
void Stop();
/// <summary>
/// Gets or sets the execution properties of this task.
/// </summary>
/// <value>
/// The execution properties of this task.
/// </value>
TaskExecutionOptions TaskOptions { get; set; }
12 years ago
}
}