using System.Threading.Tasks;
namespace MediaBrowser.Common.ScheduledTasks
{
///
/// Class StartupTaskTrigger
///
public class StartupTrigger : BaseTaskTrigger
{
///
/// Stars waiting for the trigger action
///
/// if set to true [is application startup].
protected internal async override void Start(bool isApplicationStartup)
{
if (isApplicationStartup)
{
await Task.Delay(2000).ConfigureAwait(false);
OnTriggered();
}
}
///
/// Stops waiting for the trigger action
///
protected internal override void Stop()
{
}
}
}