/// <summary> /// C#解析処理 /// </summary> /// <param name="rootPath">対象ルートフォルダ</param> /// <param name="fileRepository">ファイルリポジトリ</param> public void Analyze(string rootPath, ICSFileRepository fileRepository) { var analizeService = new AnalyzeService(rootPath, fileRepository); // 対象フォルダの解析を行う analizeService.Analyze(eventContainer); }
public void AnalizeServiceTest() { AnalyzeService service = new AnalyzeService(@"C:\Data\stopwords.txt"); List <ResultToken> statistic = service.Analyze("htc", 500.50M, 1000.50M).Result; Console.Read(); }
public async Task <List <ResultToken> > Get(string phrase, decimal priceFrom, decimal priceTo) { return(await _analyzeService.Analyze(phrase, priceFrom, priceTo)); }