Method ReadAsync
- Namespace
- IntentSharp.Documents
- Assembly
- IntentSharp.dll
ReadAsync(DocumentId, long?, CancellationToken)
Reads a version of a document: the running version when sequence is null, otherwise the version
with that sequence, rejected or not. Returns null when the document has no running version, or no version with
that sequence.
public ValueTask<StoredDocument?> ReadAsync(DocumentId id, long? sequence = null, CancellationToken ct = default)
Parameters
idDocumentIdThe document.
sequencelong?The version to read, or null for the running version.
ctCancellationTokenCancels the call.
Returns
- ValueTask<StoredDocument>
Exceptions
- ArgumentException
A default DocumentId, which names no document.