public async Task <(TransactionMonitoringTask Task, string CompletionToken)> TryGetNextMonitoringTaskAsync() { try { return(await _transactionMonitoringTaskRepository.TryGetAsync ( visibilityTimeout : TimeSpan.FromMinutes(1) )); } catch (Exception e) { _log.Error(e, "Failed to get next transaction monitoring task."); return(null, null); } }
public async Task <TransactionMonitoringTask> TryGetNextMonitoringTaskAsync() { try { return(await _transactionMonitoringTaskRepository.TryGetAsync ( visibilityTimeout : TimeSpan.FromMinutes(1) )); } catch (Exception e) { _log.Warning("Failed to get next transaction monitoring task.", e); return(null); } }