mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-24 20:28:59 +08:00
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
// ------------------------------------------------------------------------
|
||
// 版权信息
|
||
// 版权归百小僧及百签科技(广东)有限公司所有。
|
||
// 所有权利保留。
|
||
// 官方网站:https://baiqian.com
|
||
//
|
||
// 许可证信息
|
||
// 项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。
|
||
// 许可证的完整文本可以在源代码树根目录中的 LICENSE-APACHE 和 LICENSE-MIT 文件中找到。
|
||
// ------------------------------------------------------------------------
|
||
|
||
namespace ThingsGateway.Schedule;
|
||
|
||
/// <summary>
|
||
/// 每分钟特定秒开始作业触发器特性
|
||
/// </summary>
|
||
[SuppressSniffer, AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||
public sealed class MinutelyAtAttribute : CronAttribute
|
||
{
|
||
/// <summary>
|
||
/// 构造函数
|
||
/// </summary>
|
||
/// <param name="field">字段值</param>
|
||
/// <param name="fields">字段值</param>
|
||
public MinutelyAtAttribute(object field, params object[] fields)
|
||
: base("@minutely", new[] { field }.Concat(fields).ToArray())
|
||
{
|
||
}
|
||
} |