private void InvokeAndClearExtracted(object[] args)
 {
     foreach (var handler in _wrapped.ClearEnumerable())
     {
         handler.DynamicInvoke(args);
     }
 }
Exemple #2
0
 private void InvokeAndClearExtracted(Action <Exception>?onException, object?[] args)
 {
     foreach (var handler in _wrapped.ClearEnumerable())
     {
         try
         {
             handler.DynamicInvoke(args);
         }
         catch (Exception exception)
         {
             onException?.Invoke(exception);
         }
     }
 }