private Task <List <SystemMatch> > ScanText(string text) { AddTestData(); var matcher = new TextMatcher(new RandomSystemApi(new HttpClient())); return(matcher.FindSystemMatches(text)); }
public async Task <IActionResult> Post([FromBody] ScanInput input) { var scanId = Guid.NewGuid(); _logger.LogInformation("Starting scan {scanId}, text: {text}", scanId, input.Text); var result = await _matcher.FindSystemMatches(input.Text); _logger.LogInformation("Finished scan {scanId}, results: {results}", scanId, result.Count); return(Ok(result)); }