예제 #1
0
 public async Task MuteChannelAsync(MuteChannelRequest request)
 {
     await ValidateAndExecuteAsync(request, new MuteChannelRequestValidator(), new TaskReference(async() =>
     {
         await _channelService.MuteChannelAsync(Context.GetSaasUserId(), request.ChannelId, request.IsMuted);
     }),
                                   request.RequestId);
 }
예제 #2
0
        public static async Task MuteChannelAsync(SignalRClient signalRClient, Guid channelId)
        {
            // Close the channel called test
            var muteChannelRequest = new MuteChannelRequest
            {
                ChannelId = channelId,
                RequestId = Guid.NewGuid().ToString(),
                IsMuted   = true
            };

            Console.WriteLine("Mutting the channel");
            await signalRClient.MuteChannelAsync(muteChannelRequest);

            Console.WriteLine("Channel was muted.");
            Console.WriteLine();
        }
예제 #3
0
 public Task MuteChannelAsync(MuteChannelRequest request)
 {
     return(SendAndHandleExceptionsAsync(ServerMethods.MuteChannelAsync, request));
 }
예제 #4
0
 public async Task MuteChannelAsync(MuteChannelRequest request)
 {
     await _connection.InvokeAsync(MuteChannelCommandName, request);
 }