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; } //} public class JobConfig { public Type JobType { get; } public string JobKey { get; } public string TriggerKey { get; } public string Description { get; } public JobConfig(Type jobType, string jobKey, string triggerKey, string description) { JobType = jobType ?? throw new ArgumentNullException(nameof(jobType), "任务类型不能为空"); JobKey = jobKey ?? throw new ArgumentNullException(nameof(jobKey), "任务Key不能为空"); TriggerKey = triggerKey ?? throw new ArgumentNullException(nameof(triggerKey), "触发器Key不能为空"); Description = description ?? throw new ArgumentNullException(nameof(description), "任务描述不能为空"); } } }