[CHANGE] Reworked ExtendedBackgroundService.cs with State logic and actions
This commit is contained in:
10
Manager.Data/Entities/ApplicationContext/WorkItemEntity.cs
Normal file
10
Manager.Data/Entities/ApplicationContext/WorkItemEntity.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Manager.Data.Entities.ApplicationContext;
|
||||
|
||||
public class WorkItemEntity : DateTimeBase
|
||||
{
|
||||
public required Guid Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public required string Description { get; set; }
|
||||
public WorkStatus Status { get; set; } = WorkStatus.Pending;
|
||||
public required string ClientId { get; set; }
|
||||
}
|
||||
10
Manager.Data/Entities/ApplicationContext/WorkStatus.cs
Normal file
10
Manager.Data/Entities/ApplicationContext/WorkStatus.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Manager.Data.Entities.ApplicationContext;
|
||||
|
||||
public enum WorkStatus
|
||||
{
|
||||
Pending = 0,
|
||||
InProgress = 1,
|
||||
Paused = 2,
|
||||
Completed = 3,
|
||||
Faulted = 4,
|
||||
}
|
||||
Reference in New Issue
Block a user