C# Class Akka.Persistence.Sql.Common.Snapshot.SqlSnapshotStore

Abstract snapshot store implementation, customized to work with SQL-based persistence providers.
Inheritance: Akka.Persistence.Snapshot.SnapshotStore
Afficher le fichier Open project: rogeralsing/akka.net

Méthodes publiques

Méthode Description
CreateDbConnection ( ) : DbConnection

Returns a new instance of database connection.

Méthodes protégées

Méthode Description
CreateDbConnection ( string connectionString ) : DbConnection

Returns a new instance of database connection.

DeleteAsync ( SnapshotMetadata metadata ) : Task
DeleteAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task
GetConnectionString ( ) : string
LoadAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task

Asynchronously loads snapshot with the highest sequence number for a persistent actor/view matching specified criteria.

PostStop ( ) : void
SaveAsync ( SnapshotMetadata metadata, object snapshot ) : Task

Asynchronously stores a snapshot with metadata as record in SQL table.

SqlSnapshotStore ( ) : System.Collections.Generic

Private Methods

Méthode Description
CompleteCommand ( DbCommand command, DbConnection connection ) : void
ToSnapshotEntry ( SnapshotMetadata metadata, object snapshot ) : SnapshotEntry

Method Details

CreateDbConnection() public méthode

Returns a new instance of database connection.
public CreateDbConnection ( ) : DbConnection
Résultat System.Data.Common.DbConnection

CreateDbConnection() protected abstract méthode

Returns a new instance of database connection.
protected abstract CreateDbConnection ( string connectionString ) : DbConnection
connectionString string
Résultat System.Data.Common.DbConnection

DeleteAsync() protected méthode

protected DeleteAsync ( SnapshotMetadata metadata ) : Task
metadata SnapshotMetadata
Résultat Task

DeleteAsync() protected méthode

protected DeleteAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task
persistenceId string
criteria SnapshotSelectionCriteria
Résultat Task

GetConnectionString() protected méthode

protected GetConnectionString ( ) : string
Résultat string

LoadAsync() protected méthode

Asynchronously loads snapshot with the highest sequence number for a persistent actor/view matching specified criteria.
protected LoadAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task
persistenceId string
criteria SnapshotSelectionCriteria
Résultat Task

PostStop() protected méthode

protected PostStop ( ) : void
Résultat void

SaveAsync() protected méthode

Asynchronously stores a snapshot with metadata as record in SQL table.
protected SaveAsync ( SnapshotMetadata metadata, object snapshot ) : Task
metadata SnapshotMetadata
snapshot object
Résultat Task

SqlSnapshotStore() protected méthode

protected SqlSnapshotStore ( ) : System.Collections.Generic
Résultat System.Collections.Generic