public async Task PublishOperationRejectedAsync(OperationRejected @event) => await _hubContextWrapper.PublishToUserAsync(@event.UserId, "operation_rejected", new { id = @event.Id, name = @event.Name, resource = @event.Resource, code = @event.Code, reason = @event.Message });
public async Task PublishOperationRejectedAsync(OperationRejected @event) => await _hubContextWrapper.PublishToUserAsync(@event.UserId, OperationBase.OPERATION_REJECTED, new { id = @event.Id, name = @event.Name, resource = @event.Resource, code = @event.Code, reason = @event.Message } );
public async Task HandleAsync(OperationRejected @event, ICorrelationContext context) => await _hubService.PublishOperationRejectedAsync(@event);