public Pipeline(IEnumerable <Type> handledEventTypes, ActList acts, IDispatcher dispatcher, IReconciliationService reconciliationService, IEventStore eventStore) { this.handledEventTypes = handledEventTypes; this.acts = acts; this.dispatcher = dispatcher; this.reconciliationService = reconciliationService; this.eventStore = eventStore; }
public void RegisterPipeline(IEnumerable <Type> handledEventTypes, ActList acts) { var pipeline = new Pipeline(handledEventTypes, acts, this, reconciliationService, eventStore); foreach (var eventType in handledEventTypes) { if (!pipelines.ContainsKey(eventType)) { pipelines.Add(eventType, new List <Pipeline>()); } pipelines[eventType].Add(pipeline); } }