コード例 #1
0
        private async Task SendUserResponedOnTicketEmailToSupport(UserRespondToTicketRequest req)
        {
            var title = $"User responed on : {req.SteamId} - {req.TicketId}";
            var body  = req.Message.MessageBody;

            await SendEmailToSupport(body, title);
        }
コード例 #2
0
        public async Task <SingleTicketResponse> UserRespondToTicket(UserRespondToTicketRequest req)
        {
            var res = await _ticketServiceClient.UserRespondToTicket(req);

            if (res.DataCase == SingleTicketResponse.DataOneofCase.Ticket)
            {
                await SendUserResponedOnTicketEmailToSupport(req);
            }

            return(res);
        }
コード例 #3
0
 public Task <SingleTicketResponse> UserRespondToTicket(UserRespondToTicketRequest req)
 {
     return(SendGrpcAction(async() => await _ticketServiceClient.UserRespondToTicketAsync(req, DefaultSettings.GetDefaultSettings(5))));
 }