Beispiel #1
0
        public void RaiseActionFailed(ISession session, Exception exception, Expression expression, IActivation activation, ref bool isHandled)
        {
            var handler = ActionFailedEvent;

            if (handler != null)
            {
                var @event = new ActionErrorEventArgs(exception, expression, activation);
                handler(session, @event);
                isHandled |= @event.IsHandled;
            }
            _parent?.RaiseActionFailed(session, exception, expression, activation, ref isHandled);
        }
Beispiel #2
0
        public void RaiseActionFailed(ISession session, Exception exception, Expression expression, Tuple tuple, out bool isHandled)
        {
            isHandled = false;
            var handler = ActionFailedEvent;

            if (handler != null)
            {
                var @event = new ActionErrorEventArgs(exception, expression, tuple);
                handler(session, @event);
                isHandled = @event.IsHandled;
            }
        }
Beispiel #3
0
 private void OnActionFailedEvent(object sender, ActionErrorEventArgs args)
 {
     Log.ErrorFormat("Action evaluation failed. Action={0}, Message={1}", args.Action, args.Exception);
 }
 static void OnActionFailedEvent(object sender, ActionErrorEventArgs args)
 {
     Debug.WriteLine("action failed");
 }
Beispiel #5
0
 public void RaiseActionFailed(ISession session, Exception exception, Expression expression, Tuple tuple, out bool isHandled)
 {
     isHandled = false;
     var handler = ActionFailedEvent;
     if (handler != null)
     {
         var @event = new ActionErrorEventArgs(exception, expression, tuple);
         handler(session, @event);
         isHandled = @event.IsHandled;
     }
     if (_parent != null && !isHandled)
     {
         _parent.RaiseActionFailed(session, exception, expression, tuple, out isHandled);
     }
 }