Пример #1
0
        public async Task <bool> SaveErrorLogAsync(Logs log)
        {
            try
            {
                await logsProcessor.SaveAsync(log);

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Пример #2
0
 public async Task <int> SaveErrorLog(Logs log, CancellationToken token)
 => await logsProcessor.SaveAsync(log, token);