Пример #1
0
        public void RaiseAgendaExpressionEvaluated(ISession session, Exception exception, Expression expression, object[] arguments, object result, IMatch match)
        {
            var handler = AgendaExpressionEvaluatedEvent;

            if (handler != null)
            {
                var @event = new AgendaExpressionEventArgs(expression, exception, arguments, result, match);
                handler(session, @event);
            }
            _parent?.RaiseAgendaExpressionEvaluated(session, exception, expression, arguments, result, match);
        }
Пример #2
0
        public void RaiseAgendaExpressionEvaluated(ISession session, Exception exception, Expression expression, IArgumentMap argumentMap, object result, Activation activation)
        {
            var handler = AgendaExpressionEvaluatedEvent;

            if (handler != null)
            {
                var arguments = new ActivationExpressionArguments(argumentMap, activation);
                var @event    = new AgendaExpressionEventArgs(expression, exception, arguments, result, activation);
                handler(session, @event);
            }
            _parent?.RaiseAgendaExpressionEvaluated(session, exception, expression, argumentMap, result, activation);
        }