/// <summary> /// /// </summary> /// <param name="eventItem"></param> private void ProcessEvent(Spark.Event eventItem) { //Skip over waiting logic if quote event and ignoring quotes if ((IgnoreQuoteEvents) && (eventItem.Type == Spark.EVENT_QUOTE)) { return; } //Raise event DateTime sparkEventTime = ApiFunctions.DateTimeFromUnixTimestampSeconds(eventItem.Time); if (sparkEventTime > _latestMarketTime) { _latestMarketTime = sparkEventTime; } RaiseEvent(new EventFeedArgs(eventItem, _latestMarketTime)); //Wait before playing next event while replay is pause while ((IsPaused) && (!_isSteppingForward)) { System.Threading.Thread.Sleep(100); } if (_isSteppingForward) { _isSteppingForward = false; } }