 | ISnapshotQueryExecutor.SelectSnapshotAsync 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)
SyntaxTask<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.Common.DbConnection
TBD - cancellationToken
- Type: System.Threading.CancellationToken
TBD - persistenceId
- Type: System.String
TBD - maxSequenceNr
- Type: System.Int64
TBD - maxTimestamp
- Type: System.DateTime
TBD
Return Value
Type:
Task<SelectedSnapshot>TBD
See Also