Class DeleteSnapshotsOlderThanRequest
- Namespace
- Excalibur.EventSourcing.Postgres.Requests
- Assembly
- Excalibur.EventSourcing.Postgres.dll
Data request to delete snapshots older than a specified version from the Postgres snapshot store.
public sealed class DeleteSnapshotsOlderThanRequest : DataRequestBase<IDbConnection, int>, IDataRequest<IDbConnection, int>, IDataRequest
- Inheritance
-
DeleteSnapshotsOlderThanRequest
- Implements
- Inherited Members
Constructors
DeleteSnapshotsOlderThanRequest(string, string, long, TenantScope, CancellationToken, string, string)
Initializes a new instance of the DeleteSnapshotsOlderThanRequest class.
public DeleteSnapshotsOlderThanRequest(string aggregateId, string aggregateType, long version, TenantScope scope, CancellationToken cancellationToken, string schema = "public", string table = "event_store_snapshots")
Parameters
aggregateIdstringThe aggregate identifier.
aggregateTypestringThe aggregate type name.
versionlongDelete snapshots older than this version.
scopeTenantScopeThe tenant scope. An untenanted scope binds the reserved sentinel rather than omitting the term.
cancellationTokenCancellationTokenThe cancellation token.
schemastringThe schema name for the snapshot store table. Default: "public".
tablestringThe snapshot store table name. Default: "event_store_snapshots".