| ISnapshotQueryExecutorSelectSnapshotAsync Method |
Selects a single snapshot identified by persistent actor's persistenceId,
matching upper (inclusive) bounds of both maxSequenceNr and maxTimestamp.
In case, when more than one snapshot matches specified criteria, one with the highest sequence number will be selected.
Namespace:
Akka.Persistence.Sql.Common.Snapshot
Assembly:
Akka.Persistence.Sql.Common (in Akka.Persistence.Sql.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax Task<SelectedSnapshot> SelectSnapshotAsync(
DbConnection connection,
CancellationToken cancellationToken,
string persistenceId,
long maxSequenceNr,
DateTime maxTimestamp
)
abstract SelectSnapshotAsync :
connection : DbConnection *
cancellationToken : CancellationToken *
persistenceId : string *
maxSequenceNr : int64 *
maxTimestamp : DateTime -> Task<SelectedSnapshot>
Parameters
- connection
- Type: System.Data.CommonDbConnection
TBD - cancellationToken
- Type: System.ThreadingCancellationToken
TBD - persistenceId
- Type: SystemString
TBD - maxSequenceNr
- Type: SystemInt64
TBD - maxTimestamp
- Type: SystemDateTime
TBD
Return Value
Type:
TaskSelectedSnapshotTBD
See Also