mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +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;
|
||
|
}
|
||
|
}
|