/// <summary> /// Initializes an instance of <see cref="EventsConfiguration"/> /// </summary> /// <param name="eventStoreChangeManager">An instance of <see cref="IEventStoreChangeManager"/></param> public EventsConfiguration(IEventStoreChangeManager eventStoreChangeManager) { _eventStoreChangeManager = eventStoreChangeManager; EventStoreType = typeof(NullEventStore); EventSubscriptionsType = typeof(NullEventSubscriptions); UncommittedEventStreamCoordinatorType = typeof(NullUncommittedEventStreamCoordinator); }
/// <summary> /// Initializes an instance of a <see cref="UncommittedEventStreamCoordinator"/> /// </summary> /// <param name="eventStore"><see cref="IEventStore"/> to use for saving the events</param> /// <param name="eventStoreChangeManager"><see cref="IEventStoreChangeManager"/> to notify about changes</param> /// <param name="eventSubscriptionManager"><see cref="IEventSubscriptionManager"/> to process subscriptions</param> public UncommittedEventStreamCoordinator( IEventStore eventStore, IEventStoreChangeManager eventStoreChangeManager, IEventSubscriptionManager eventSubscriptionManager) { _eventStore = eventStore; _eventStoreChangeManager = eventStoreChangeManager; _eventSubscriptionManager = eventSubscriptionManager; }
/// <summary> /// Initializes a new instance of <see cref="EventStore"/> /// </summary> /// <param name="repository"><see cref="IEventRepository"/> that persists events</param> /// <param name="eventStoreChangeManager">A <see cref="IEventStoreChangeManager"/> for managing changes to the event store</param> /// <param name="eventSubscriptionManager">A <see cref="IEventSubscriptionManager"/> for managing event subscriptions</param> /// <param name="localizer"><see cref="ILocalizer" /> that ensures thread has the correct culture.</param> public EventStore( IEventRepository repository, IEventStoreChangeManager eventStoreChangeManager, IEventSubscriptionManager eventSubscriptionManager, ILocalizer localizer) { _repository = repository; _eventStoreChangeManager = eventStoreChangeManager; _eventSubscriptionManager = eventSubscriptionManager; _localizer = localizer; }
/// <summary> /// Initializes an instance of <see cref="EventsConfiguration"/> /// </summary> /// <param name="eventStoreChangeManager">An instance of <see cref="IEventStoreChangeManager"/></param> public EventsConfiguration(IEventStoreChangeManager eventStoreChangeManager) { _eventStoreChangeManager = eventStoreChangeManager; }
/// <summary> /// Initializes an instance of <see cref="EventsConfiguration"/> /// </summary> /// <param name="eventStoreChangeManager">An instance of <see cref="IEventStoreChangeManager"/></param> public EventsConfiguration(IEventStoreChangeManager eventStoreChangeManager) { _eventStoreChangeManager = eventStoreChangeManager; RepositoryType = typeof(EventRepository); EventStoreType = typeof(EventStore); }