示例#1
0
        public async Task <string> ProccessQueueMessages(SQSEvent evnt, ILambdaContext context)
        {
            var requsts = evnt.Records.Select(m => CommonFunctionality.ProcessScoreRequest(JsonConvert.DeserializeObject <ScoreRequest>(m.Body)));
            var results = await Task.WhenAll(requsts);

            return($"Processed: {results.Length.ToString()}");
        }
示例#2
0
 public async Task <string> ScoreDefaultRange(ILambdaContext context) =>
 await CommonFunctionality.ProcessScoreRequest(new ScoreRequest { Range = CommonFunctionality.DefaultRange });