Exemplo n.º 1
0
 public ESauceService(IEventRepository eventRepository,
                      // ISnapshotRepository<TAggregate> snapshotRepository,
                      IHandlerMappingProvider <TAggregate> handlerMappingProvider,
                      IServiceProvider serviceProvider)
 {
     this.eventRepository        = eventRepository;
     this.handlerMappingProvider = handlerMappingProvider;
     // this.snapshotRepository = snapshotRepository;
     this.serviceProvider = serviceProvider;
 }
Exemplo n.º 2
0
 public AggregateConfiguration(IServiceCollection serviceDescriptors,
                               IHandlerMappingProvider <TAggregate> handlerMapping)
 {
     this.serviceDescriptors = serviceDescriptors;
     this.handlerMapping     = handlerMapping;
 }