Method ReadAllTextSharedAsync
- Namespace
- Oscova.Agents.Utils
- Assembly
- Oscova.Agents.dll
ReadAllTextSharedAsync(string, CancellationToken)
Reads all text through a shared handle so atomic replacements do not cause file-in-use errors.
public static Task<string> ReadAllTextSharedAsync(string path, CancellationToken cancellationToken = default)Parameters
pathstringcancellationTokenCancellationToken