Beispiel #1
0
 async Task TryStartQueue <T>(IEnumerable <T> items, Action <T> act, int maxThreads)
 {
     try {
         await items.SimpleQueue(maxThreads, act).ConfigureAwait(false);
     } catch (AggregateException e) {
         this.Logger().FormattedErrorException(e);
         var f = e.Flatten();
         throw f.InnerExceptions.First();
     } finally {
         _statusRepo.Finish();
     }
 }