19 lines
435 B
C#
19 lines
435 B
C#
namespace Kurisu.Scheduled.Attributes;
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class RecurringJobAttribute : Attribute
|
|
{
|
|
public RecurringJobAttribute(string uniqueJobKey, string cron)
|
|
{
|
|
UniqueJobKey = uniqueJobKey;
|
|
Cron = cron;
|
|
}
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string UniqueJobKey { get; }
|
|
public string Cron { get; }
|
|
|
|
public string Queue { get; set; } = "default";
|
|
}
|