Пример #1
0
 /// <summary>
 ///     Adds exceptions from another aggregator into this aggregator.
 /// </summary>
 /// <param name="aggregator">The aggregator whose exceptions should be copied.</param>
 public void Aggregate(ExceptionAggregator aggregator)
 {
     exceptions.AddRange(aggregator.exceptions);
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ExceptionAggregator" /> class that
 ///     contains the exception list of its parent.
 /// </summary>
 /// <param name="parent">The parent aggregator to copy exceptions from.</param>
 public ExceptionAggregator(ExceptionAggregator parent)
 {
     exceptions = new List <Exception>(parent.exceptions);
 }