public DefaultAggregateRootCheckpointManager(
     IOptions <CheckpointTriggerOptions> options,
     IDomainEventStateBackend eventStateBackend,
     ILogger <DefaultAggregateRootCheckpointManager> logger,
     IAggregateRootCheckpointStateBackend <IEventSourcedAggregateRoot> backend)
 {
     _logger  = logger;
     _options = options.Value;
     _checkpointStateBackend = backend;
     _eventStateBackend      = eventStateBackend;
 }
 public DefaultAggregateRootStateBackend(
     ITimer timer,
     IAggregateRootMemoryCache memoryCache,
     IDomainEventStateBackend stateBackend,
     IOptions <CheckpointTriggerOptions> options,
     IAggregateRootFactory aggregateRootFactory,
     ILogger <DefaultAggregateRootStateBackend> logger,
     IAggregateRootCheckpointManager checkpointManager)
 {
     _timer                = timer;
     _logger               = logger;
     _eventStateBackend    = stateBackend;
     _checkpointManager    = checkpointManager;
     _memoryCache          = memoryCache;
     _aggregateRootFactory = aggregateRootFactory;
     _options              = options.Value;
 }