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); }
public async Task <IActionResult> JoinToChannelAsync(Guid channelId) { await _channelSocketService.JoinToChannelAsync(new ChannelRequest(GetCurrentSaasUserId(), channelId)); return(Ok()); }