Пример #1
0
        private void RetryFailedActions()
        {
            lock (workQueue)
            {
                if (workQueue.Count == 0)
                {
                    return;
                }

                if (Utility.CurrentTime().Subtract(lastAttempt) >= RetryInterval)
                {
                    indexer.Unlock();
                    lastAttempt = N2.Utility.CurrentTime();
                    ExecuteEnqueuedActionsAsync();
                }
            }
        }
Пример #2
0
        private void RetryFailedActions()
        {
            lock (workQueue)
            {
                if (workQueue.Count == 0)
                {
                    return;
                }

                if (Utility.CurrentTime().Subtract(lastAttempt) >= RetryInterval)
                {
                    try
                    {
                        indexer.Unlock();
                        lastAttempt = N2.Utility.CurrentTime();
                        ExecuteEnqueuedActionsAsync();
                    }
                    catch (Exception ex)
                    {
                        logger.Error("Error scheduling work", ex);
                    }
                }
            }
        }