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()}"); }
public async Task <string> ScoreDefaultRange(ILambdaContext context) => await CommonFunctionality.ProcessScoreRequest(new ScoreRequest { Range = CommonFunctionality.DefaultRange });