Table of Contents

Class GetCurrentVersionRequest

Namespace
Excalibur.EventSourcing.Postgres.Requests
Assembly
Excalibur.EventSourcing.Postgres.dll

Data request to get the current version of an aggregate in the Postgres event store.

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 = "public", string table = "events")

Parameters

aggregateId string

The aggregate identifier.

aggregateType string

The aggregate type name.

transaction IDbTransaction

The transaction to participate in.

scope TenantScope

The tenant scope. The event store is a keyed tenant table, so the version lookup 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) lookup is unrepresentable.

cancellationToken CancellationToken

The cancellation token.

schema string

The schema name for the event store table. Default: "public".

table string

The event store table name. Default: "events".