static void EnqueueSamples(ConcurrentQueue<DataSample> que, iRacingConnection samples, int maxBufferLength, ref bool cancelRequest)
        {
            foreach (var data in samples.GetRawDataFeed())
            {
                if (cancelRequest)
                    return;

                if (que.Count < maxBufferLength)
                    que.Enqueue(data);
                else
                    Debug.WriteLine(string.Format("Dropped DataSample {0}.", data.Telemetry.TickCount));
            }
        }
        static void EnqueueSamples(ConcurrentQueue <DataSample> que, iRacingConnection samples, int maxBufferLength, ref bool cancelRequest)
        {
            foreach (var data in samples.GetRawDataFeed())
            {
                if (cancelRequest)
                {
                    return;
                }

                if (que.Count < maxBufferLength)
                {
                    que.Enqueue(data);
                }
                else
                {
                    Debug.WriteLine(string.Format("Dropped DataSample {0}.", data.Telemetry.TickCount));
                }
            }
        }