Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/18/17 12:18:47 (7 years ago)
Author:
jkarder
Message:

#2830:

  • the asynchronous calls are now awaited
  • added extension method to flatten and handle inner exceptions of AggregateExceptions
  • fixed some catch clauses
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.Benchmarks/3.3/BenchmarkAlgorithm.cs

    r15287 r15367  
    312312      } catch (OperationCanceledException) {
    313313      } catch (AggregateException ae) {
    314         OnExceptionOccurred(ae.InnerExceptions.SingleOrDefault() ?? ae);
     314        ae.FlattenAndHandle(new[] { typeof(OperationCanceledException) }, e => OnExceptionOccurred(e));
    315315      } catch (Exception e) {
    316316        OnExceptionOccurred(e);
Note: See TracChangeset for help on using the changeset viewer.