/// <summary> /// Initializes an instance of the <see cref="StateTransitionEventsCalculator" /> class. /// </summary> /// <param name="identifier">The <see cref="EmbeddingId" />.</param> /// <param name="embedding">The <see cref="IEmbedding" />.</param> /// <param name="projector">The <see cref="IProjectManyEvents"/>.</param> /// <param name="stateComparer">The <see cref="ICompareStates"/>.</param> /// <param name="loopDetector">The <see cref="IDetectEmbeddingLoops"/>.</param> /// <param name="logger">The <see cref="ILogger"/>.</param> public StateTransitionEventsCalculator( EmbeddingId identifier, IEmbedding embedding, IProjectManyEvents projector, ICompareStates stateComparer, IDetectEmbeddingLoops loopDetector, ILogger logger) { _embeddingId = identifier; _embedding = embedding; _projector = projector; _stateComparer = stateComparer; _loopDetector = loopDetector; _logger = logger; }
/// <summary> /// Initializes an instance of the <see cref="EmbeddingProcessorFactory" /> class. /// </summary> public EmbeddingProcessorFactory( TenantId tenant, IEventStore eventStore, IFetchCommittedEvents committedEventsFetcher, IEmbeddingStore embeddingStore, IStreamEventWatcher streamEventWatcher, ICompareStates stateComparer, IDetectEmbeddingLoops loopDetector, ILoggerFactory loggerFactory ) { _tenant = tenant; _eventStore = eventStore; _committedEventsFetcher = committedEventsFetcher; _embeddingStore = embeddingStore; _streamEventWatcher = streamEventWatcher; _stateComparer = stateComparer; _loopDetector = loopDetector; _loggerFactory = loggerFactory; }