Table of Contents

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

userId string
path string
plaintext string
protector IContentProtector
ct CancellationToken

Returns

Task