示例#1
0
        public async ValueTask <Dto.Res.Biz.WriteLog> ExecuteAsync(WriteLog request, CancellationToken cancellationToken = default)
        {
            var output = new Dto.Res.Biz.WriteLog(false);

            try
            {
                var message = _mapper.Map <WriteLogEvent>(request);
                await _biz.WriteLogAsync(message);
            }
            catch (Exception ex)
            {
                _logger.LogError("WriteLogReqHdlr Execute:  " + ex.Message + " - " + ex.StackTrace);
            }

            return(output);
        }