public async Task<string> GetFileContentAsyn(FileItem fileItem) { var folder = KnownFolders.DocumentsLibrary; var storageFile = await folder.GetFileAsync(fileItem.Code); return await FileIO.ReadTextAsync(storageFile); }
private async void SetFileContent(FileItem storageFile) { FileContent = await fileService.GetFileContentAsyn(storageFile); }
public async Task<string> GetFileContentAsync(FileItem fileItem) { var storageFile = await storageFolder.GetFileAsync(fileItem.Code); return await FileIO.ReadTextAsync(storageFile); }
private async void SetFileContent(FileItem storageFile) { FileContent = await fileRepository.GetFileContentAsync(storageFile); }