Akka.Persistence.MongoDb.Snapshot.MongoDbSnapshotStore.LoadAsync C# (CSharp) Метод

LoadAsync() защищенный Метод

protected LoadAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task
persistenceId string
criteria SnapshotSelectionCriteria
Результат Task
        protected override Task<SelectedSnapshot> LoadAsync(string persistenceId, SnapshotSelectionCriteria criteria)
        {
            var filter = CreateRangeFilter(persistenceId, criteria);

            return
                _snapshotCollection.Value
                    .Find(filter)
                    .SortByDescending(x => x.SequenceNr)
                    .Limit(1)
                    .Project(x => ToSelectedSnapshot(x))
                    .FirstOrDefaultAsync();
        }