public void MatchFound(EventBean theEvent, ICollection <FilterHandleCallback> allStmtMatches) { if (collector != null) { var holder = _collectorDataTL.GetOrCreate(); if (holder == null) { holder = new EPDataFlowEventBeanCollectorContext(graphContext, submitEventBean, theEvent); _collectorDataTL.Value = holder; } else { holder.Event = theEvent; } collector.Collect(holder); } else if (submitEventBean) { emittables.Push(theEvent); } else { emittables.Push(theEvent.Underlying); } }
public void MatchFound( EventBean theEvent, ICollection<FilterHandleCallback> allStmtMatches) { if (collector != null) { var holder = new EPDataFlowEventBeanCollectorContext(graphContext, factory.IsSubmitEventBean, theEvent); collector.Collect(holder); } else if (factory.IsSubmitEventBean) { emittables.Push(theEvent); } else { emittables.Push(theEvent.Underlying); } }