예제 #1
0
        public async Task <T> LoadAsync <T>(string filename)
        {
            var encryptedJson = await _ioService.LoadAsync(filename);

            var plainTextJson = _cryptographyService.Decrypt(encryptedJson);

            var model = JsonConvert.DeserializeObject <T>(plainTextJson);

            return(model);
        }