Table of Contents

Class GetLatestSnapshotRequest

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

Data request to get the latest snapshot for an aggregate from the Postgres snapshot store.

public sealed class GetLatestSnapshotRequest : DataRequestBase<IDbConnection, ISnapshot?>, IDataRequest<IDbConnection, ISnapshot?>, IDataRequest
Inheritance
GetLatestSnapshotRequest
Implements
Inherited Members

Constructors

GetLatestSnapshotRequest(string, string, TenantScope, CancellationToken, string, string)

Initializes a new instance of the GetLatestSnapshotRequest class.

public GetLatestSnapshotRequest(string aggregateId, string aggregateType, TenantScope scope, CancellationToken cancellationToken, string schema = "public", string table = "event_store_snapshots")

Parameters

aggregateId string

The aggregate identifier.

aggregateType string

The aggregate type name.

scope TenantScope

The tenant scope. An untenanted scope binds the reserved sentinel rather than omitting the term.

cancellationToken CancellationToken

The cancellation token.

schema string

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

table string

The snapshot store table name. Default: "event_store_snapshots".