commit
80aa72909b
|
|
@ -14,6 +14,8 @@ public class CrontabItemDocument : MongoBase
|
|||
public int ExecutionCount { get; set; }
|
||||
public int MaxExecutionCount { get; set; }
|
||||
public int ExpireSeconds { get; set; }
|
||||
public DateTime? LastExecutionTime { get; set; }
|
||||
public bool LessThan60Seconds { get; set; } = false;
|
||||
public IEnumerable<CronTaskMongoElement> Tasks { get; set; } = [];
|
||||
public DateTime CreatedTime { get; set; } = DateTime.UtcNow;
|
||||
|
||||
|
|
@ -31,6 +33,8 @@ public class CrontabItemDocument : MongoBase
|
|||
ExecutionCount = item.ExecutionCount,
|
||||
MaxExecutionCount = item.MaxExecutionCount,
|
||||
ExpireSeconds = item.ExpireSeconds,
|
||||
LastExecutionTime = item.LastExecutionTime,
|
||||
LessThan60Seconds = item.LessThan60Seconds,
|
||||
Tasks = item.Tasks?.Select(x => CronTaskMongoElement.ToDomainElement(x))?.ToArray() ?? [],
|
||||
CreatedTime = item.CreatedTime
|
||||
};
|
||||
|
|
@ -50,6 +54,8 @@ public class CrontabItemDocument : MongoBase
|
|||
ExecutionCount = item.ExecutionCount,
|
||||
MaxExecutionCount = item.MaxExecutionCount,
|
||||
ExpireSeconds = item.ExpireSeconds,
|
||||
LastExecutionTime = item.LastExecutionTime,
|
||||
LessThan60Seconds = item.LessThan60Seconds,
|
||||
Tasks = item.Tasks?.Select(x => CronTaskMongoElement.ToMongoElement(x))?.ToList() ?? [],
|
||||
CreatedTime = item.CreatedTime
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue