Class LoadEventsRequest
- Namespace
- Excalibur.EventSourcing.Postgres.Requests
- Assembly
- Excalibur.EventSourcing.Postgres.dll
Data request to load events for an aggregate from the Postgres event store.
public sealed class LoadEventsRequest : DataRequestBase<IDbConnection, IReadOnlyList<StoredEvent>>, IDataRequest<IDbConnection, IReadOnlyList<StoredEvent>>, IDataRequest
- Inheritance
-
LoadEventsRequest
- Implements
- Inherited Members
Constructors
LoadEventsRequest(string, string, long, TenantScope, CancellationToken, string, string)
Initializes a new instance of the LoadEventsRequest class.
public LoadEventsRequest(string aggregateId, string aggregateType, long fromVersion, TenantScope scope, CancellationToken cancellationToken, string schema = "public", string table = "events")
Parameters
aggregateIdstringThe aggregate identifier.
aggregateTypestringThe aggregate type name.
fromVersionlongLoad events after this version (-1 for all events).
scopeTenantScopeThe tenant scope. The event store is a keyed tenant table, so the query is always partitioned by a non-null tenant term: the resolved tenant when scoped, or the reserved
untenantedsentinel when unscoped — routed through KeyedTenantPartition, which has no empty inhabitant. A predicate-less all-tenants query is therefore unrepresentable.cancellationTokenCancellationTokenThe cancellation token.
schemastringThe schema name for the event store table. Default: "public".
tablestringThe event store table name. Default: "events".