private Task ReadFile(FileSystemInfo myFile) { return(Task.Run(() => ReadData.Add(new FileClientContents { FileName = myFile.Name, FileContents = FileReader.ReadFileToString(myFile.FullName) }))); }