Class GetCurrentVersionRequest
- Namespace
- Excalibur.EventSourcing.SqlServer.Requests
- Assembly
- Excalibur.EventSourcing.SqlServer.dll
Data request to get the current version of an aggregate stream.
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 = "dbo", string table = "EventStoreEvents")
Parameters
aggregateIdstringThe aggregate identifier.
aggregateTypestringThe aggregate type name.
transactionIDbTransactionOptional transaction to participate in.
scopeTenantScopeThe 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
untenantedsentinel when unscoped — routed through KeyedTenantPartition, which has no empty inhabitant. An un-partitioned (all-tenants) lookup is unrepresentable.cancellationTokenCancellationTokenThe cancellation token.
schemastringThe schema name for the event store table. Default: "dbo".
tablestringThe event store table name. Default: "EventStoreEvents".