public static void LogExecutionOnEach <T>(this IPackagingDiagnostics diagnostics, IEnumerable <T> targets, Action <T> continuation)
 {
     targets.Each(t =>
     {
         diagnostics.LogExecution(t, () => continuation(t));
     });
 }
Пример #2
0
 public static void LogExecutionOnEach <TItem>(this IPackagingDiagnostics diagnostics, IEnumerable <TItem> targets, Action <TItem, IPackageLog> continuation)
 {
     targets.Each(currentTarget =>
     {
         var log = diagnostics.LogFor(currentTarget);
         diagnostics.LogExecution(currentTarget, () => continuation(currentTarget, log));
     });
 }