Documentation
Table of Contents

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.

ValueTask<StoredDocument?> ReadAsync(DocumentId id, long? sequence = null, CancellationToken ct = default)

Parameters

id DocumentId

The document.

sequence long?

The version to read, or null for the running version.

ct CancellationToken

Cancels the call.

Returns

ValueTask<StoredDocument>

Exceptions

ArgumentException

A default DocumentId, which names no document.