Method ReadAllTextAsync
- Namespace
- Oscova.Agents.Secrets
- Assembly
- Oscova.Agents.dll
ReadAllTextAsync(string, string, IContentProtector, CancellationToken)
Reads and decrypts a whole encrypted file, or returns null when it does not exist.
public static Task<string?> ReadAllTextAsync(string userId, string path, IContentProtector protector, CancellationToken ct = default)Parameters
userIdstringpathstringprotectorIContentProtectorctCancellationToken