mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-03 01:14:17 +02:00
9 lines
246 B
C#
9 lines
246 B
C#
namespace API.Workers;
|
|
|
|
public interface IPeriodic<T> where T : BaseWorker
|
|
{
|
|
protected DateTime LastExecution { get; set; }
|
|
protected TimeSpan Interval { get; set; }
|
|
|
|
public DateTime NextExecution => LastExecution.Add(Interval);
|
|
} |