Esempio n. 1
0
 public static void WithLog(IPackageLog log, Action action)
 {
     _status.PushLog(log);
     try
     {
         log.Execute(action);
     }
     catch (Exception ex)
     {
         log.MarkFailure(ex);
     }
     finally
     {
         _status.PopLog();
     }
 }
Esempio n. 2
0
 public static void WithLog(IPackageLog log, Action action)
 {
     _status.PushLog(log);
     try
     {
         log.Execute(action);
     }
     catch (Exception ex)
     {
         log.MarkFailure(ex);
     }
     finally
     {
         _status.PopLog();
     }
 }