Esempio n. 1
0
        private void invoke(Action action)
        {
            _report.StartBehavior(_inner);

            try
            {
                action();
            }
            catch (Exception ex)
            {
                _report.MarkException(ex);
                if (!_debugDetector.IsDebugCall())
                {
                    throw;
                }
            }

            _report.EndBehavior();
        }
Esempio n. 2
0
        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();
        }