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