private async void LoadCustomer() { var reader = new StorageFileReader(Ioc.Resolve<IEncryptionService>(), Ioc.Resolve<ISerializer>()); //Customer = await reader.LoadDataAsync<Customer>("customer.json"); Customer = await reader.LoadDataAsync<Customer>("customer.json.enc"); }
private async void LoadAction() { try { var reader = new StorageFileReader(CurrentEncryptionService, _serializer); Customer = await reader.LoadDataAsync<Customer>(Filename); } catch (FileNotFoundException) { // file not found. } }