private void invoke(Action action) { _report.StartBehavior(_inner); try { action(); } catch (Exception ex) { _report.MarkException(ex); if (!_debugDetector.IsDebugCall()) { throw; } } _report.EndBehavior(); }
private void invoke(Action action) { var report = _report.StartBehavior(Inner); report.BehaviorId = _behaviorId; try { action(); } catch (Exception ex) { _report.MarkException(ex); if (!_debugDetector.IsOutputWritingLatched()) { throw; } } _report.EndBehavior(); }