private void ProcessBuildEventsUntilFrameBlocked() { bool processedFrameBlockingEvent = false; bool isNextEventFrameBlocked = false; while (buildEvents.Count > 0 && !isNextEventFrameBlocked) { BuildEvent nextEvent = buildEvents.Dequeue(); try { ActionBuildEvent(nextEvent); } catch (Exception ex) { Log.Error(ex, "Error processing buildEvent in ThrottledBuilder"); } if (nextEvent.RequiresFreshFrame()) { processedFrameBlockingEvent = true; } isNextEventFrameBlocked = (processedFrameBlockingEvent && buildEvents.NextEventRequiresFreshFrame()); } }
private void ProcessBuildEventsUntilFrameBlocked() { bool processedFrameBlockingEvent = false; bool isNextEventFrameBlocked = false; while (buildEvents.Count > 0 && !isNextEventFrameBlocked) { BuildEvent nextEvent = buildEvents.Dequeue(); ActionBuildEvent(nextEvent); if (nextEvent.RequiresFreshFrame()) { processedFrameBlockingEvent = true; } isNextEventFrameBlocked = (processedFrameBlockingEvent && buildEvents.NextEventRequiresFreshFrame()); } }