protected override List<IDispatcher<ResolvedEvent>> GetDispatchers(TinyIoCContainer container)
        {
            var widgetDenormalizer = new WidgetDenormalizer(container.Resolve<IViewModelWriter>());
            var typedRegistry = new MessageHandlerRegistry<Type>();

            typedRegistry.AddByConvention(widgetDenormalizer);

            var aggregateDispatcher = new EventStoreAggregateEventDispatcher(typedRegistry);

            return new List<IDispatcher<ResolvedEvent>>() { aggregateDispatcher };
        }
Example #2
0
        protected override List <IDispatcher <ResolvedEvent> > GetDispatchers(TinyIoCContainer container)
        {
            var widgetDenormalizer = new WidgetDenormalizer(container.Resolve <IViewModelWriter>());
            var typedRegistry      = new MessageHandlerRegistry <Type>();

            typedRegistry.AddByConvention(widgetDenormalizer);

            var aggregateDispatcher = new EventStoreAggregateEventDispatcher(typedRegistry);

            return(new List <IDispatcher <ResolvedEvent> >()
            {
                aggregateDispatcher
            });
        }