using System;
namespace MediaBrowser.Common.ScheduledTasks
{
    /// 
    /// Interface ITaskTrigger
    /// 
    public interface ITaskTrigger
    {
        /// 
        /// Fires when the trigger condition is satisfied and the task should run
        /// 
        event EventHandler Triggered;
        /// 
        /// Stars waiting for the trigger action
        /// 
        /// if set to true [is application startup].
        void Start(bool isApplicationStartup);
        /// 
        /// Stops waiting for the trigger action
        /// 
        void Stop();
    }
}