public async Task SaveDataAsync <T>(List <T> data) { string json = await Task.Factory.StartNew(() => JsonConvert.SerializeObject(data)); string fileName = GetFileNameFrom(typeof(T)); Stream stream = await _fileAccessor.GetWritableStreamAsync(fileName); using (var streamWriter = new StreamWriter(stream)) { await streamWriter.WriteAsync(json); } }