Beispiel #1
0
        private void RetryFailedActions()
        {
            lock (workQueue)
            {
                if (workQueue.Count == 0)
                {
                    return;
                }

                if (Utility.CurrentTime().Subtract(lastAttempt) >= RetryInterval)
                {
                    indexer.Unlock();
                    lastAttempt = DateTime.Now;
                    ExecuteEnqueuedActionsAsync();
                }
            }
        }
Beispiel #2
0
        private void RetryFailedActions()
        {
            if (errorQueue.Count == 0)
            {
                return;
            }

            if (Utility.CurrentTime().Subtract(lastAttempt) >= RetryInterval)
            {
                lock (errorQueue)
                {
                    indexer.Unlock();
                    lastAttempt = DateTime.Now;
                    while (errorQueue.Count > 0)
                    {
                        DoWork(errorQueue.Dequeue());
                    }
                }
            }
        }
Beispiel #3
0
 /// <summary>Unlocks the index.</summary>
 public virtual void Unlock()
 {
     indexer.Unlock();
 }