public void Monitor_LiveFeedUpdated(object sender, LiveFeedUpdatedEventArgs e) { if (_fileWriter.LastElapsedWritten == null || e.LiveFeedData.Elapsed != _fileWriter.LastElapsedWritten.Value) { _fileWriter.WriteFile(e.LiveFeedData); } }
public void Monitor_LiveFeedUpdated(object sender, LiveFeedUpdatedEventArgs e) { try { ProcessLiveFeedDataAsync(e.LiveFeedData); } catch (Exception ex) { ExceptionHandler("Error processing live feed update", ex); } }