コード例 #1
0
 /// <summary>
 /// Initializes this object
 /// </summary>
 /// <param name="eventBus">The eventbus</param>
 /// <param name="persistentEventStore">The persistence layer for the event store</param>
 /// <param name="performanceMeasurementService">The performance measurement service</param>
 public EventStore(
     IEventBus eventBus,
     IPersistentEventStore persistentEventStore,
     IPerformanceMeasurementService performanceMeasurementService)
 {
     _eventBus                      = eventBus;
     _persistentEventStore          = persistentEventStore;
     _performanceMeasurementService = performanceMeasurementService;
 }
コード例 #2
0
 /// <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;
 }