Example #1
0
        public async Task <String> DownloadSearchDatabaseAsync()
        {
            String        dbTargetFile  = FilePaths.GetFtsDbFilePath(_config.collectionIdentifier);
            IonCollection ampCollection = await _ampPages.getCollectionAsync().ConfigureAwait(false);

            // Load fts db from server and save data to file
            using (MemoryStream responseStream = await _dataClient.performRequestAsync(ampCollection.fts_db).ConfigureAwait(false))
            {
                await FileUtils.WriteToFile(responseStream, dbTargetFile).ConfigureAwait(false);
            }

            return(dbTargetFile);
        }