When attempting to use IFile.WriteAllBytesAsync, all underlying exceptions from File.WriteAllBytesAsync are quietly disregarded. I can see the exceptions being thrown, but a try/catch fails to catch the exceptions. Instead, the program continues execution on the next line. I believe this is due to the FileWrapper not awaiting the response from File.WriteAllBytes, and instead it's always returning a Task.Completed task.
When attempting to use
IFile.WriteAllBytesAsync, all underlying exceptions fromFile.WriteAllBytesAsyncare quietly disregarded. I can see the exceptions being thrown, but atry/catchfails to catch the exceptions. Instead, the program continues execution on the next line. I believe this is due to theFileWrappernot awaiting the response fromFile.WriteAllBytes, and instead it's always returning a Task.Completed task.