Add operations page
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user