namespace dy.net.dto
{
///
/// 任务配置实体
///
public class JobConfig
{
public JobConfig(Type jobType, string jobKey, string triggerKey, string description)
{
JobType = jobType ?? throw new ArgumentNullException(nameof(jobType));
JobKey = jobKey ?? throw new ArgumentNullException(nameof(jobKey));
TriggerKey = triggerKey ?? throw new ArgumentNullException(nameof(triggerKey));
Description = description ?? throw new ArgumentNullException(nameof(description));
}
///
/// 任务类型
///
public Type JobType { get; }
///
/// 任务Key
///
public string JobKey { get; }
///
/// 触发器Key
///
public string TriggerKey { get; }
///
/// 任务描述
///
public string Description { get; }
}
}