Exemple #1
0
        private ICollection <LatencyDetectionContext> MoveBacklogDataToReport(LoggingType type)
        {
            IDictionary <string, LatencyDetectionLocation> locations = this.thresholdCollection.Locations;
            int count = locations.Count;
            List <LatencyDetectionContext> list = null;

            foreach (KeyValuePair <string, LatencyDetectionLocation> keyValuePair in locations)
            {
                BackLog backLog = keyValuePair.Value.GetBackLog(type);
                if (list == null)
                {
                    list = new List <LatencyDetectionContext>(count * backLog.Count);
                }
                backLog.MoveToList(list);
            }
            return(list);
        }