Files
ICD.Common.Utils/ICD.Common.Utils/Services/Scheduler/IScheduledAction.cs
2020-03-10 13:39:38 -04:00

20 lines
430 B
C#

using System;
namespace ICD.Common.Utils.Services.Scheduler
{
public interface IScheduledAction
{
/// <summary>
/// Raised when the scheduled run time has changed. The sender of the event must be the action itself
/// </summary>
event EventHandler OnScheduledRunTimeChanged;
/// <summary>
/// Gets the next time this action should be run
/// </summary>
DateTime? NextRunTimeUtc { get; }
void Run();
}
}