Ejemplo n.º 1
0
 public async Task <string> TryRead(string filePath)
 {
     return(await _fileOperationAttempter.AttemptFileAction(() => ReadAllText(filePath)));
 }
Ejemplo n.º 2
0
 public async Task TryWrite(string content, string filePath)
 {
     await _fileOperationAttempter.AttemptFileAction(() => WriteAllText(filePath, content));
 }