Example #1
0
 public async Task <bool> RunAsync()
 {
     try
     {
         if (!await _blobService.DownloadBlobAsync())
         {
             return(false);
         }
         if (!await _stockService.UpdateStock())
         {
             return(false);
         }
         return(true);
     }
     catch (Exception ex)
     {
         _log.LogError($"Exception: { ex?.Message }");
         _log.LogError($"Inner Exception: { ex.InnerException?.Message ?? "No inner exception" }");
         return(false);
     }
 }