Ejemplo n.º 1
0
        public void RaiseRhsExpressionEvaluated(ISession session, Exception exception, Expression expression, IArgumentMap argumentMap, Activation activation)
        {
            var handler = RhsExpressionEvaluatedEvent;

            if (handler != null)
            {
                var arguments = new ActivationExpressionArguments(argumentMap, activation);
                var @event    = new RhsExpressionEventArgs(expression, exception, arguments, activation);
                handler(session, @event);
            }
            _parent?.RaiseRhsExpressionEvaluated(session, exception, expression, argumentMap, activation);
        }
Ejemplo n.º 2
0
        public void RaiseRhsExpressionFailed(ISession session, Exception exception, Expression expression, IArgumentMap argumentMap, Activation activation, ref bool isHandled)
        {
            var handler = RhsExpressionFailedEvent;

            if (handler != null)
            {
                var arguments = new ActivationExpressionArguments(argumentMap, activation);
                var @event    = new RhsExpressionErrorEventArgs(expression, exception, arguments, activation);
                handler(session, @event);
                isHandled |= @event.IsHandled;
            }
            _parent?.RaiseRhsExpressionFailed(session, exception, expression, argumentMap, activation, ref isHandled);
        }
Ejemplo n.º 3
0
        public object[] GetArguments(IActionContext actionContext)
        {
            var arguments = new ActivationExpressionArguments(_argumentMap, actionContext.Activation);

            return(arguments.GetValues());
        }