Ejemplo n.º 1
0
        void RemoveRequests(Dictionary <long, RequestStatus> clientRequests, string clientId, long from, long to, ref long lastRemovedId)
        {
            while (from <= to)
            {
                lock (clientRequests)
                {
                    bool exist = clientRequests.Remove(from);
                    if (exist)
                    {
                        lastRemovedId = from;
                        _statsCollector.DecrementRequestLogCount();
                    }

                    from = from + 1;
                    if (from < 0)
                    {
                        break;
                    }
                }
            }
        }