change JobTask to SiteTask

This commit is contained in:
sbwalker
2026-02-19 10:47:30 -05:00
parent 0fd97d34d9
commit 060eaa7aff
19 changed files with 197 additions and 160 deletions

View File

@@ -0,0 +1,54 @@
namespace Oqtane.Models
{
/// <summary>
/// An instance of a SiteTask which is executed by the SiteTaskJob
/// </summary>
public class SiteTask : ModelBase
{
/// <summary>
/// Internal ID
/// </summary>
public int SiteTaskId { get; set; }
/// <summary>
/// Site where the Task should execute
/// </summary>
public int SiteId { get; set; }
/// <summary>
/// Name for simple identification
/// </summary>
public string Name { get; set; }
/// <summary>
/// Fully qualified type name of the Task
/// </summary>
public string Type { get; set; }
/// <summary>
/// Any parameters related to the Task
/// </summary>
public string Parameters { get; set; }
/// <summary>
/// Indicates if the Task is completed
/// </summary>
public bool IsCompleted { get; set; }
/// <summary>
/// Any status information provided by the Task
/// </summary>
public string Status { get; set; }
// constructors
public SiteTask() { }
public SiteTask(int siteId, string name, string type, string parameters)
{
SiteId = siteId;
Name = name;
Type = type;
Parameters = parameters;
}
}
}