Table of Contents

Class LoadEventsRequest

Namespace
Excalibur.EventSourcing.Oracle.Requests
Assembly
Excalibur.EventSourcing.Oracle.dll

Data request to load events for an aggregate from the Oracle 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 = "EXCALIBUR", string table = "EVENTSTOREEVENTS")

Parameters

aggregateId string

The aggregate identifier.

aggregateType string

The aggregate type name.

fromVersion long

Load events after this version (-1 for all events).

scope TenantScope

The 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 untenanted sentinel when unscoped — routed through KeyedTenantPartition, which has no empty inhabitant. A predicate-less all-tenants query is therefore unrepresentable.

cancellationToken CancellationToken

The cancellation token.

schema string

The schema name for the event store table.

table string

The event store table name.