public HomeController(ILogger <HomeController> logger, ICommandBus commandBus,
                       IPersonService personService, ICommandEventRepository commandEventRepository,
                       IPersonRepository personRepository)
 {
     _logger                     = logger;
     this.commandBus             = commandBus;
     this.personService          = personService;
     this.commandEventRepository = commandEventRepository;
     this.personRepository       = personRepository;
     this.context                = new Context(personRepository);
 }
Exemple #2
0
 public PersonCommandHandler(IPersonService personService, ICommandEventRepository eventRepository)
 {
     this.personService   = personService;
     this.eventRepository = eventRepository;
 }