Table of Contents

Class GetCurrentVersionRequest

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

Data request to get the current version of an aggregate stream, using an in-transaction read so the optimistic-concurrency compare is serializable with the subsequent append.

public sealed class GetCurrentVersionRequest : DataRequestBase<IDbConnection, long>, IDataRequest<IDbConnection, long>, IDataRequest
Inheritance
GetCurrentVersionRequest
Implements
Inherited Members

Constructors

GetCurrentVersionRequest(string, string, IDbTransaction?, TenantScope, CancellationToken, string, string)

Initializes a new instance of the GetCurrentVersionRequest class.

public GetCurrentVersionRequest(string aggregateId, string aggregateType, IDbTransaction? transaction, TenantScope scope, CancellationToken cancellationToken, string schema = "EXCALIBUR", string table = "EVENTSTOREEVENTS")

Parameters

aggregateId string

The aggregate identifier.

aggregateType string

The aggregate type name.

transaction IDbTransaction

Optional transaction to participate in.

scope TenantScope

The tenant scope. The event store is a keyed tenant table, so the version compare 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. An un-partitioned (all-tenants) concurrency check is unrepresentable.

cancellationToken CancellationToken

The cancellation token.

schema string

The schema name for the event store table.

table string

The event store table name.