Exemplo n.º 1
0
 public async Task DeleteMessageAsync(SignalRRequest.Message.DeleteMessageRequest request)
 {
     await ValidateAndExecuteAsync(request, new DeleteMessageRequestValidator(), new TaskReference(async() =>
     {
         var archiveMessageRequest = new ArchiveMessageRequest(Context.GetSaasUserId(), request.MessageId);
         await _messageSocketService.ArchiveMessageAsync(archiveMessageRequest);
     }),
                                   request.RequestId);
 }
Exemplo n.º 2
0
        public async Task <IActionResult> DeleteMessageAsync(Guid channelId, Guid messageId)
        {
            await _messageSocketService.ArchiveMessageAsync(new ArchiveMessageRequest(GetCurrentSaasUserId(), messageId));

            return(Ok());
        }