namespace MasstransferCommon.Annotation; /// /// 通过添加特性注解实现开启定时任务 /// /// [AttributeUsage(AttributeTargets.Class, Inherited = false)] public class ScheduledJobAttribute(string cron) : Attribute { public string Cron { get; } = cron; }