示例#1
0
        private BlockStoreBlockResponse processBlockQueryAverage(BlockStoreBlockQuery query, int[] blockIDs)
        {
            BlockStoreBlockResponse br = new BlockStoreBlockResponse();

            br.BlockID           = -1;
            br.DetectorResponses = new Dictionary <string, BlockStoreDetectorResponse>();
            br.Settings          = getBlockConfig(blockIDs[0]);

            foreach (BlockStoreDetectorQuery q in query.DetectorQueries)
            {
                br.DetectorResponses.Add(q.Detector, processDetectorQueryAverage(q, blockIDs));
            }

            return(br);
        }
示例#2
0
        private BlockStoreBlockResponse processBlockQueryAverage(BlockStoreBlockQuery query, int[] blockIDs)
        {
            BlockStoreBlockResponse br = new BlockStoreBlockResponse();
            br.BlockID = -1;
            br.DetectorResponses = new Dictionary<string, BlockStoreDetectorResponse>();
            br.Settings = getBlockConfig(blockIDs[0]);

            foreach (BlockStoreDetectorQuery q in query.DetectorQueries)
                br.DetectorResponses.Add(q.Detector, processDetectorQueryAverage(q, blockIDs));

            return br;
        }