示例#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();
     }
 }
示例#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();
     }
 }