示例#1
0
 /// <summary>
 /// Initializes this object
 /// </summary>
 /// <param name="dependencyService">The dependency service</param>
 /// <param name="performanceMeasurementService">The performance measurement service</param>
 public CommandDispatcher(
     IDependencyService dependencyService,
     IPerformanceMeasurementService performanceMeasurementService)
 {
     _dependencyService             = dependencyService;
     _performanceMeasurementService = performanceMeasurementService;
 }
示例#2
0
        /// <summary>
        /// Initializes this object
        /// </summary>
        /// <param name="connectionName">Name of the connection string</param>
        /// <param name="tableName">Name of the database table</param>
        /// <param name="performanceMeasurementService">The performance measurement service.</param>
        /// <param name="configurationRegistry">The configuration registry.</param>
        public EventDatastore(string connectionName, string tableName, IPerformanceMeasurementService performanceMeasurementService, IConfigurationRegistry configurationRegistry)

            : base(performanceMeasurementService)
        {
            _tableName = tableName;
            _performanceMeasurementService = performanceMeasurementService;
            _connectionString = configurationRegistry.GetValue <string>(connectionName);
        }
示例#3
0
 /// <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;
 }
示例#4
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;
 }
示例#5
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;
 }
示例#6
0
 /// <summary>
 /// Initializes this object
 /// </summary>
 /// <param name="eventStore">The event store.</param>
 /// <param name="eventBus">The event bus.</param>
 /// <param name="loggingService">The logging service.</param>
 /// <param name="performanceMeasurementService">The performance measurement service.</param>
 public EventStoreInitializer(
     IEventStore eventStore,
     IEventBus eventBus,
     ILoggingService loggingService,
     IPerformanceMeasurementService performanceMeasurementService)
 {
     _eventStore     = eventStore;
     _eventBus       = eventBus;
     _loggingService = loggingService;
     _performanceMeasurementService = performanceMeasurementService;
 }
示例#7
0
        /// <summary>
        /// Initializes this object
        /// </summary>
        /// <param name="snapshotStore">The snapshot store</param>
        /// <param name="repositories">A list of all aggregate repositories</param>
        /// <param name="snapshotThreshold">The Threshold above which should a snapshot be created</param>
        /// <param name="performanceMeasurementService">The performance measurement service</param>
        public SnapshotProcessor(
            ISnapshotStore snapshotStore,
            IEnumerable <ISnapshotableRepository> repositories,
            int snapshotThreshold,
            IPerformanceMeasurementService performanceMeasurementService)
        {
            _snapshotStore                 = snapshotStore;
            _snapshotThreshold             = snapshotThreshold;
            _performanceMeasurementService = performanceMeasurementService;

            _repositories = repositories.Where(r => r.IsSnapshotSupported())
                            .ToDictionary(r => r.GetOriginatorType(), r => r);
        }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatastoreBase"/> class.
 /// </summary>
 /// <param name="performanceMeasurementService">The performance measurement service.</param>
 public DatastoreBase(IPerformanceMeasurementService performanceMeasurementService)
 {
     _performanceMeasurementService = performanceMeasurementService;
 }
示例#9
0
 /// <summary>
 /// Initializes this object
 /// </summary>
 /// <param name="performanceMeasurementService">The performance measurement service</param>
 public CommandDispatcher(IPerformanceMeasurementService performanceMeasurementService)
 {
     _performanceMeasurementService = performanceMeasurementService;
 }
 /// <summary>
 /// Initializes this object
 /// </summary>
 /// <param name="performanceMeasurementService">The performance measurement service</param>
 public QueryDispatcher(IPerformanceMeasurementService performanceMeasurementService)
 {
     _performanceMeasurementService = performanceMeasurementService;
 }