mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
17 lines
471 B
C#
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;
|
|
}
|
|
}
|