CheckpointNumberIncrementListener is used to set the next checkpointId. This is listener is required by the RavenPersistenceEngine. However, it doesn't get added to the documentStore if the user instantiates the RavenPersistenceEngine directly, providing their own IDocumentStore.
We should move adding the listener as initinalization logic to inside RavenPersistenceEngine. However, RavenPersistenceEngine depends on IDocumentStore, which doesn't expose RegisterListener. We should consider changing the dependency to DocumentStoreBase.
This will be a breaking change to the RavenPersistenceEngine ctor contract.
CheckpointNumberIncrementListener is used to set the next checkpointId. This is listener is required by the RavenPersistenceEngine. However, it doesn't get added to the documentStore if the user instantiates the RavenPersistenceEngine directly, providing their own IDocumentStore.
We should move adding the listener as initinalization logic to inside RavenPersistenceEngine. However, RavenPersistenceEngine depends on IDocumentStore, which doesn't expose RegisterListener. We should consider changing the dependency to DocumentStoreBase.
This will be a breaking change to the RavenPersistenceEngine ctor contract.