Пример #1
0
        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);
        }
Пример #2
0
 public KdbxDatabaseCache(ILogger log, IDatabaseFileAccess databaseTracker, IFilePicker filePicker)
     : base(log, databaseTracker, filePicker)
 {
 }
Пример #3
0
 public DatabaseCache(ILogger log, IDatabaseFileAccess databaseTracker, IFilePicker filePicker)
 {
     Log         = log;
     _fileAccess = databaseTracker;
     _filePicker = filePicker;
 }