public BlockStoreResponse processQuery(BlockStoreQuery query) { BlockStoreResponse bsr = new BlockStoreResponse(); bsr.BlockResponses = new List<BlockStoreBlockResponse>(); foreach(int blockID in query.BlockIDs) bsr.BlockResponses.Add(processBlockQuery(query.BlockQuery, blockID)); return bsr; }
public BlockStoreResponse processQuery(BlockStoreQuery query) { BlockStoreResponse bsr = new BlockStoreResponse(); bsr.BlockResponses = new List <BlockStoreBlockResponse>(); foreach (int blockID in query.BlockIDs) { bsr.BlockResponses.Add(processBlockQuery(query.BlockQuery, blockID)); } return(bsr); }
// querying for average TOFs uses different code - this is because of the need to keep // memory consumption under control, and the urge to re-use the old averaging code. // The result is that the averaging must be done at the TOFChannelSet level. public string processJSONQueryAverage(string jsonQuery) { BlockStoreQuery query = BsonSerializer.Deserialize <BlockStoreQuery>(jsonQuery); return(processBlockQueryAverage(query.BlockQuery, query.BlockIDs).ToJson <BlockStoreBlockResponse>()); }
public string processJSONQuery(string jsonQuery) { BlockStoreQuery query = BsonSerializer.Deserialize <BlockStoreQuery>(jsonQuery); return(processQuery(query).ToJson <BlockStoreResponse>()); }