This commit is contained in:
2025-07-02 02:26:02 +02:00
parent 35053bbc85
commit 10d0a65637
97 changed files with 944 additions and 13321 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);
}