public async Task PinChannelAsync(PinChannelRequest request) { await ValidateAndExecuteAsync(request, new PinChannelRequestValidator(), new TaskReference(async() => { await _channelService.PinChannelAsync(Context.GetSaasUserId(), request.ChannelId, request.IsPinned); }), request.RequestId); }
public static async Task PinChannelAsync(SignalRClient signalRClient, Guid channelId) { // Close the channel called test var pinChannelRequest = new PinChannelRequest() { ChannelId = channelId, RequestId = Guid.NewGuid().ToString(), IsPinned = true }; Console.WriteLine("Pinning the channel"); await signalRClient.PinChannelAsync(pinChannelRequest); Console.WriteLine("Channel was pinned."); Console.WriteLine(); }
public Task PinChannelAsync(PinChannelRequest request) { return(SendAndHandleExceptionsAsync(ServerMethods.PinChannelAsync, request)); }
public async Task PinChannelAsync(PinChannelRequest request) { await _connection.InvokeAsync(PinChannelCommandName, request); }