mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
20 lines
430 B
C#
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();
|
|
}
|
|
}
|