コード例 #1
0
 protected virtual async Task TryUpdateAsync(IBackgroundJobStore store, BackgroundJobInfo jobInfo)
 {
     try {
         await store.UpdateAsync(jobInfo);
     } catch (Exception updateEx) {
         Logger.LogException(updateEx);
     }
 }
コード例 #2
0
 private void TryUpdate(BackgroundJobInfo jobInfo)
 {
     try
     {
         _store.UpdateAsync(jobInfo);
     }
     catch (Exception updateEx)
     {
         Logger.Warn(updateEx.ToString(), updateEx);
     }
 }
コード例 #3
0
 private async Task TryUpdateAsync(BackgroundJobInfo jobInfo)
 {
     try
     {
         await _store.UpdateAsync(jobInfo);
     }
     catch (Exception updateEx)
     {
         Logger.Warn(updateEx.ToString(), updateEx);
     }
 }