Exemple #1
0
 public async Task PublishRemarkVoteSubmittedAsync(RemarkVoteSubmitted @event)
 => await PublishToAllAsync("remark_vote_submitted",
                            new
 {
     remarkId  = @event.RemarkId,
     userId    = @event.UserId,
     positive  = @event.Positive,
     createdAt = @event.CreatedAt
 }
                            );
Exemple #2
0
 public async Task HandleAsync(RemarkVoteSubmitted @event)
 => await CompleteForAuthenticatedUserAsync(@event);