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 }; }
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 }); }