Beispiel #1
0
        private async Task <bool> HandleDojSubmitSuccess(ILogger log, Stop stop, DateTime date, Guid submissionId, string fileName, string runId)
        {
            try
            {
                log.LogInformation($"Handling DoJ submission success: {stop.Id} : {runId}");
                await _stopCosmosDbService.UpdateStopAsync(_stopService.NewSubmission(stop, date, submissionId, fileName));

                return(true);
            }
            catch (Exception ex)
            {
                log.LogError($"Exception: {ex} --> occurred during update stop status stop id {stop.Id} : {runId}");
                return(false);
            }
        }