Example #1
0
        internal async Task <int> AddCommentAsync(GrpcChannel channel,
                                                  int taskId,
                                                  int senderId,
                                                  int userIdToBeUpdated,
                                                  string comment)
        {
            var client = new Comments.CommentsClient(channel);
            var input  = new CommentInput
            {
                TaskId   = taskId,
                SenderId = senderId,
                Message  = comment
            };
            var response = await client.AddCommentAsync(input);

            await SendUpdateEventAsync(channel, userIdToBeUpdated);

            return(response.Value);
        }