protected bool UpdateInvokeData(HandlerInvokeData invokeData, Handler handler, Event eventInstance, Entity entity, ICollection <NodeDescription> changedNodes) { HandlerInvokeGraph handlerInvokeGraph = handler.HandlerInvokeGraph.Init(); bool flag = reverseCombinator.Combine(handlerInvokeGraph, entity, changedNodes) && combinator.Combine(handlerInvokeGraph, null); if (flag) { invokeData.Update(eventInstance, handlerInvokeGraph); } handlerInvokeGraph.Clear(); return(flag); }
protected virtual bool UpdateInvokeData(HandlerInvokeData invokeData, Handler handler, Event eventInstance, ICollection <Entity> contextEntities) { if (handler.IsEventOnlyArguments) { invokeData.UpdateForEventOnlyArguments(eventInstance); return(true); } HandlerInvokeGraph handlerInvokeGraph = handler.HandlerInvokeGraph.Init(); bool flag = combinator.Combine(handlerInvokeGraph, contextEntities); if (flag) { invokeData.Update(eventInstance, handlerInvokeGraph); } else { invokeData.UpdateForEmptyCall(); } handlerInvokeGraph.Clear(); return(flag); }