CSharpAnalytics.Network.BackgroundHttpRequester.RequestLoop C# (CSharp) Method

RequestLoop() private method

Loop that keeps requesting URIs in the queue until there are none left, then sleeps.
private RequestLoop ( ) : void
return void
        private void RequestLoop()
        {
            using (var queueEmptyWait = new ManualResetEventSlim())
            {
                while (IsStarted)
                {
                    try
                    {
                        if (IsInternetAvailable)
                        {
                            while (GetNextQueueEntry(out currentlySending))
                            {
                                RequestWithFailureRetry(currentlySending, cancellationTokenSource.Token);
                                currentlySending = null;
                            }
                        }

                        queueEmptyWait.Wait(currentUploadInterval, cancellationTokenSource.Token);
                    }
                    catch
                    {
                    }
                }
            }
        }