public int EndTimeTheFeed(int expectedTickCount, int timeoutSeconds) { while (count < expectedTickCount && Factory.TickCount < startTime + timeoutSeconds * 1000) { if (propagateException != null) { throw propagateException; } Thread.Sleep(100); } log.Notice("Expected " + expectedTickCount + " and received " + count + " ticks."); log.Notice("Last tick received at : " + tickIO.ToPosition()); Factory.TickUtil.TickQueue("Stats").LogStats(); Dispose(); if (propagateException != null) { throw propagateException; } return(count); }
public int EndTimeTheFeed(int expectedTickCount, int timeoutSeconds) { while (count < expectedTickCount && Factory.TickCount < startTime + timeoutSeconds * 1000) { if (propagateException != null) { throw new ApplicationException("EndTimeTheFeed found exception thrown in back end: " + propagateException.Message, propagateException); } Thread.Sleep(100); } log.Notice("Expected " + expectedTickCount + " and received " + count + " ticks."); log.Notice("Last tick received at : " + tickIO.ToPosition()); if (count < expectedTickCount) { var queueStats = Factory.Parallel.GetQueueStats(); log.Info(queueStats); } if (propagateException != null) { throw propagateException; } return(count); }