public void Update( object sender, UpdateEventArgs eventArgs) { var holder = new EPDataFlowIRStreamCollectorContext( emitterForCollector, submitEventBean, eventArgs.NewEvents, eventArgs.OldEvents, eventArgs.Statement, eventArgs.Runtime); collector.Collect(holder); }
public void Update(EventBean[] newEvents, EventBean[] oldEvents, EPStatement statement, EPServiceProvider epServiceProvider) { EPDataFlowIRStreamCollectorContext holder = _collectorDataTL.GetOrCreate(); if (holder == null) { holder = new EPDataFlowIRStreamCollectorContext(_emitterForCollector, _submitEventBean, newEvents, oldEvents, statement, epServiceProvider); _collectorDataTL.Value = holder; } else { holder.ServiceProvider = epServiceProvider; holder.Statement = statement; holder.OldEvents = oldEvents; holder.NewEvents = newEvents; } _collector.Collect(holder); }