public Updater(SymbolSearchService service, string source) { _service = service; _source = source; var fileName = ConvertToFileName(source); _databaseFileInfo = new FileInfo( Path.Combine(_service._cacheDirectoryInfo.FullName, fileName + ".txt")); }
public Updater(SymbolSearchService service, string source, string localSettingsDirectory) { _service = service; _source = source; _cacheDirectoryInfo = new DirectoryInfo(Path.Combine( localSettingsDirectory, "PackageCache", string.Format(Invariant($"Format{AddReferenceDatabase.TextFileFormatVersion}")))); _databaseFileInfo = new FileInfo( Path.Combine(_cacheDirectoryInfo.FullName, ConvertToFileName(source) + ".txt")); }