public SaveSearch ( ISearch search ) : void | ||
search | ISearch | |
Результат | void |
private void PersistResults(DateTime startDate, DateTime endDate, IEnumerable <string> phrases) { var matchingFile = new PersistanceManager.MatchingFile(_searchFile, _searchPhrase, 0, _matches); var matchingFiles = new List <PersistanceManager.MatchingFile>() { matchingFile }; var processedFilesCount = 1u; var storedSearch = new PersistanceManager.Search(startDate, endDate, processedFilesCount, phrases, matchingFiles); // TODO: Remove magic db name string var persistanceManager = new PersistanceManager.SqLitePersistanceManager("db.s3db"); persistanceManager.SaveSearch(storedSearch); }
private void PersistResults(DateTime startDate, DateTime endDate, IEnumerable<string> phrases) { var matchingFile = new PersistanceManager.MatchingFile(_searchFile, _searchPhrase, 0, _matches); var matchingFiles = new List<PersistanceManager.MatchingFile>() { matchingFile }; var processedFilesCount = 1u; var storedSearch = new PersistanceManager.Search(startDate, endDate, processedFilesCount, phrases, matchingFiles); // TODO: Remove magic db name string var persistanceManager = new PersistanceManager.SqLitePersistanceManager("db.s3db"); persistanceManager.SaveSearch(storedSearch); }