private async Task <Unit> HandleError(PowershellFailure failure, IOperationTaskMessage command) { await _bus.Publish(OperationTaskStatusEvent.Failed(command.OperationId, command.TaskId, new ErrorData { ErrorMessage = failure.Message })).ConfigureAwait(false); return(Unit.Default); }
private async Task <Unit> HandleError(PowershellFailure failure) { await _bus.Send(new OperationFailedEvent() { OperationId = _operationId, ErrorMessage = failure.Message, }).ConfigureAwait(false); return(Unit.Default); }