btcpayserver/BTCPayServer/HostedServices/ScheduledTask.cs
2023-05-29 09:02:47 +02:00

17 lines
471 B
C#

using System;
namespace BTCPayServer.HostedServices
{
public class ScheduledTask
{
public ScheduledTask(Type periodicTypeTask, TimeSpan every)
{
PeriodicTaskType = periodicTypeTask;
Every = every;
}
public Type PeriodicTaskType { get; set; }
public TimeSpan Every { get; set; } = TimeSpan.FromMinutes(5.0);
public DateTimeOffset NextScheduled { get; set; } = DateTimeOffset.UtcNow;
}
}