public async Task LoadDatabaseAsync(string filename) { var settings = new StorageManagerSettings { NumberOfThreads = Environment.ProcessorCount, Password = _passwordManager.GetPassword(_settingsManager.ApplicationSettings.DefaultKey), UseEncryption = true, UseMultithreading = true }; StorageManager storage = new StorageManager(settings); _dataCollection = await storage.DeserializeObjectFromFileAsync <FileHashCollectionDataModel>(filename, null); }
public FileDataContext(PasswordManager passwordManager, AppSettingsManager settingsManager) { _passwordManager = passwordManager; _settingsManager = settingsManager; _dataCollection = new FileHashCollectionDataModel(); }