예제 #1
0
 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;
 }
예제 #2
0
        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);
            }
        }