Ejemplo n.º 1
0
 public async Task JoinToChannelAsync(SignalRRequest.Channel.ChannelRequest request)
 {
     await ValidateAndExecuteAsync(request, new ChannelRequestValidator(), new TaskReference(async() =>
     {
         var joinToChannelRequest = new DomainRequest.Channel.ChannelRequest(Context.GetSaasUserId(), request.ChannelId);
         await _channelSocketService.JoinToChannelAsync(joinToChannelRequest);
     }),
                                   request.RequestId);
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> JoinToChannelAsync(Guid channelId)
        {
            await _channelSocketService.JoinToChannelAsync(new ChannelRequest(GetCurrentSaasUserId(), channelId));

            return(Ok());
        }