private void TakeHourlySnapshot() { // 7. Saves the entire state as a snapshot to the Akka.NET Persistence SaveSnapshot(_state); // 8. Tells the child Actor to write values to the DB too. _dbWriterActor.Tell(new WriteReadingsToDatabase(_state.GetUnsavedItems())); }
private void TakeHourlySnapshot() { SaveSnapshot(_state); _dbWriterActor.Tell(new WriteReadingsToDatabase(_state.GetUnsavedItems())); }