Add operations page

This commit is contained in:
2025-11-06 09:58:42 +09:00
parent 8c3da2553f
commit 6cf27fd5db
3 changed files with 163 additions and 0 deletions

View File

@ -14,6 +14,7 @@ namespace Hcs.WebApp.BackgroundServices
public bool Ready { get; set; }
public event Action<Operation> OnOperationCreated;
public event OperationStarted OnOperationStarted;
public event OperationExecuted OnOperationExecuted;
public event OperationEnded OnOperationEnded;
@ -21,6 +22,8 @@ namespace Hcs.WebApp.BackgroundServices
public void EnqueueOperation(Operation operation)
{
operationsInQueue.Enqueue(operation);
OnOperationCreated?.Invoke(operation);
}
public bool TryDequeueOperation(out Operation operation)