public async Task PublishOperationPendingAsync(OperationDto operation)
 {
     await _hubContextWrapper.PublishToAllAsync("operation_pending",
                                                new
     {
         id        = operation.Id,
         name      = operation.Name,
         sentBy    = operation.OwnUserId,
         projectId = operation.ProjectId,
         issueId   = operation.IssueId,
         sprintId  = operation.SprintId,
         userId    = operation.UserId
     }
                                                );
 }
Example #2
0
 public async Task PublishUserLeaderBoradInfoAsync(LeaderBoardPlayerDto @event)
 {
     await _hubContextWrapper.PublishToAllAsync("user_leader_board_info_added",
                                                new
     {
         userId    = @event.UserId,
         userRank  = @event.UserRank,
         userScore = @event.UserScore,
         leaderBoardPlayerBehind = @event.LeaderBoardPlayerBehind,
         leaderBoardPlayerAhead  = @event.LeaderBoardPlayerAhead,
     }
                                                );
 }