Method AssessAsync
- Namespace
- IntentSharp.Documents
- Assembly
- IntentSharp.dll
AssessAsync(DocumentId, string?, string, CancellationToken)
Assesses a proposed text for the document against its running text.
ValueTask<EditImpact> AssessAsync(DocumentId id, string? current, string proposed, CancellationToken ct = default)
Parameters
idDocumentIdThe document being edited.
currentstringThe running text, or null when the document is new or has no running version.
proposedstringThe text proposed as the new version.
ctCancellationTokenCancels the assessment.
Returns
- ValueTask<EditImpact>
Whether the proposed text loads, its problems, what it changes and whether it widens a security item.