Add operation kind
This commit is contained in:
@ -9,7 +9,7 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
public event OperationExecuted OnOperationExecuted;
|
||||
public event OperationEnded OnOperationEnded;
|
||||
|
||||
public EventsAggregator(OperationExecutionState operationExecutionState, ResultGetState resultGetState)
|
||||
public EventsAggregator(OperationExecutionState operationExecutionState, ResultGetState resultGetState, DataParsingState dataParsingState)
|
||||
{
|
||||
operationExecutionState.OnOperationCreated += (a) => OnOperationCreated?.Invoke(a);
|
||||
operationExecutionState.OnOperationStarted += (a, b, c) => OnOperationStarted?.Invoke(a, b, c);
|
||||
@ -17,6 +17,10 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
operationExecutionState.OnOperationEnded += (a, b, c, d) => OnOperationEnded?.Invoke(a, b, c, d);
|
||||
|
||||
resultGetState.OnOperationEnded += (a, b, c, d) => OnOperationEnded?.Invoke(a, b, c, d);
|
||||
|
||||
dataParsingState.OnOperationCreated += (a) => OnOperationCreated?.Invoke(a);
|
||||
dataParsingState.OnOperationStarted += (a, b, c) => OnOperationStarted?.Invoke(a, b, c);
|
||||
dataParsingState.OnOperationEnded += (a, b, c, d) => OnOperationEnded?.Invoke(a, b, c, d);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user