Interface ITaskTrigger
Interface ITaskTrigger
Namespace: MediaBrowser.Model.Tasks
Assembly: MediaBrowser.Model.dll
Syntax
public interface ITaskTrigger
Properties
TaskOptions
Gets or sets the options of this task.
Declaration
TaskOptions TaskOptions { get; set; }
Property Value
Type | Description |
---|---|
TaskOptions |
Methods
Start(TaskResult, ILogger, String, Boolean)
Stars waiting for the trigger action
Declaration
void Start(TaskResult lastResult, ILogger logger, string taskName, bool isApplicationStartup)
Parameters
Type | Name | Description |
---|---|---|
TaskResult | lastResult | |
ILogger | logger | |
System.String | taskName | |
System.Boolean | isApplicationStartup |
Stop()
Stops waiting for the trigger action
Declaration
void Stop()
Events
Triggered
Fires when the trigger condition is satisfied and the task should run
Declaration
event EventHandler<GenericEventArgs<TaskOptions>> Triggered
Event Type
Type | Description |
---|---|
System.EventHandler<GenericEventArgs<TaskOptions>> |