public List <T> GetData <T>(string entityId) where T : IPersistableEntity { Log("GetData by entityId ", entityId); var data = persistableEntityRepository.GetData <T>(entityId); Log("Got data : ", data); return(data); }
public override Task ReplayMessagesAsync(IActorContext context, string persistenceId, long fromSequenceNr, long toSequenceNr, long max, Action <IPersistentRepresentation> recoveryCallback) { Console.WriteLine("Replaying messages for Persistence Id:" + persistenceId); var persistentRepresentations = repository.GetData <JournalEntry>(persistenceId, fromSequenceNr, toSequenceNr, max); foreach (var persistentRepresentation in persistentRepresentations) { recoveryCallback((IPersistentRepresentation)persistentRepresentation.Payload); } return(Task.FromResult(false)); }