This commit is contained in:
2025-07-02 02:26:02 +02:00
parent 07880fedb5
commit 57bb87120a
96 changed files with 814 additions and 13216 deletions

9
API/Workers/IPeriodic.cs Normal file
View File

@ -0,0 +1,9 @@
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);
}