Exemplo n.º 1
0
 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
 });
Exemplo n.º 2
0
 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);