Method WriteAllTextAsync
- Namespace
- Oscova.Agents.Secrets
- Assembly
- Oscova.Agents.dll
WriteAllTextAsync(string, string, string, IContentProtector, CancellationToken)
Encrypts and atomically replaces a whole file as one envelope.
public static Task WriteAllTextAsync(string userId, string path, string plaintext, IContentProtector protector, CancellationToken ct = default)Parameters
userIdstringpathstringplaintextstringprotectorIContentProtectorctCancellationToken