/// <summary> /// Initializes this object /// </summary> /// <param name="datastore">The datastore.</param> /// <param name="documentStoreCache">The document store cache.</param> /// <param name="performanceMeasurementService">The performance measurement service.</param> public CachedDocumentDatabaseSnapshotStore(ISnapshotDatastore datastore, IDocumentStoreCache <SnapshotBase> documentStoreCache, IPerformanceMeasurementService performanceMeasurementService) { _datastore = datastore; _documentStoreCache = documentStoreCache; _performanceMeasurementService = performanceMeasurementService; }
/// <summary> /// Initializes this object /// </summary> /// <param name="persistentEventStore">The persistent event store.</param> /// <param name="documentStoreCache">The caching strategy used</param> /// <param name="performanceMeasurementService">The performance measurement service.</param> public CachedDocumentDatabaseEventStore( IPersistentEventStore persistentEventStore, IDocumentStoreCache <IDomainEvent> documentStoreCache, IPerformanceMeasurementService performanceMeasurementService) { _persistentEventStore = persistentEventStore; _documentStoreCache = documentStoreCache; _performanceMeasurementService = performanceMeasurementService; }
/// <summary> /// Initializes a new instance of the <see cref="ModelRepositoryDeletionCoordinator" /> class. /// </summary> /// <param name="eventDatastore">The event datastore.</param> /// <param name="snapshotDatastore">The snapshot datastore.</param> /// <param name="eventDocumentStoreCache">The event document store cache.</param> /// <param name="snapshotDocumentStoreCache">The snapshot document store cache.</param> public ModelRepositoryDeletionCoordinator( IEventDatastore eventDatastore, ISnapshotDatastore snapshotDatastore, IDocumentStoreCache <IDomainEvent> eventDocumentStoreCache, IDocumentStoreCache <SnapshotBase> snapshotDocumentStoreCache) { _eventDatastore = eventDatastore; _snapshotDatastore = snapshotDatastore; _eventDocumentStoreCache = eventDocumentStoreCache; _snapshotDocumentStoreCache = snapshotDocumentStoreCache; }