public PasswordDialogViewModel(IFile db, IDatabaseCache cache, IDatabaseFileAccess tracker) { Name = db.Name; AddKeyFileCommand = new DelegateCommand(async() => { KeyFile = await cache.AddKeyFileAsync(db); }); tracker.GetKeyFileAsync(db).ContinueWith((r, o) => { KeyFile = r.Result; }, SynchContext); }
public KdbxDatabaseCache(ILogger log, IDatabaseFileAccess databaseTracker, IFilePicker filePicker) : base(log, databaseTracker, filePicker) { }
public DatabaseCache(ILogger log, IDatabaseFileAccess databaseTracker, IFilePicker filePicker) { Log = log; _fileAccess = databaseTracker; _filePicker = filePicker; }