Interface IEventStoreArchiveReader
- Namespace
- Excalibur.EventSourcing
- Assembly
- Excalibur.EventSourcing.Abstractions.dll
Optional administrative capability for reading a candidate's raw hot event history.
public interface IEventStoreArchiveReader
Remarks
Resolve through the same captured hot store's GetService(Type) as archive discovery and tombstoning. This capability grants payload access and is distinct from IEventStoreArchive. Restricting decorators must explicitly mediate or deny it. Implementations bind the supplied partition without changing or consulting later ambient tenancy. Results preserve stored payloads, metadata, provenance, archive markers and erasure markers; they do not restore cold payloads. This read is not a fence against subsequent erasure.
Methods
LoadArchiveEventsAsync(KeyedTenantPartition, string, string, long, CancellationToken)
Loads one exact stream through an inclusive version ceiling, ordered by version.
ValueTask<IReadOnlyList<StoredEvent>> LoadArchiveEventsAsync(KeyedTenantPartition tenant, string aggregateId, string aggregateType, long upToVersion, CancellationToken cancellationToken)
Parameters
tenantKeyedTenantPartitionVerified partition within the caller's administrative authority.
aggregateIdstringNonblank aggregate identifier.
aggregateTypestringNonblank, case-sensitive aggregate type.
upToVersionlongNonnegative inclusive version ceiling.
cancellationTokenCancellationTokenCancellation token.
Returns
- ValueTask<IReadOnlyList<StoredEvent>>
The raw rows; authorization, cancellation and storage failures throw rather than return absence.