AddTaskCustom必须自己实现CustomHandler吗
LiuYuLu opened this issue · 2 comments
LiuYuLu commented
2881099 commented
可以同时实现,分开也可以,反正内部只认接口。
CronHelper 参考:https://www.cnblogs.com/berkerdong/p/16619415.html
var nextTime = CronHelper.GetNextOccurrence(task.IntervalArgument);
return nextTime - DateTimeOffset.UtcNow;
LiuYuLu commented
感谢解答