public IEnumerable <MonitorEvent> GetMonitorEvents(int size) { if (size <= 0) { size = 25; } if (size > _lastEventsQueue.Count) { size = _lastEventsQueue.Count; } return(_lastEventsQueue.TakeLast(size).Reverse()); }
public IEnumerable <MonitorEvent> GetMonitorEvents(int size) { if (size <= 0) { size = 25; } if (size > _lastEventsQueue.Count) { size = _lastEventsQueue.Count; } return(_lastEventsQueue.TakeLast(size).Reverse()); }