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);
 }
コード例 #2
0
 public PersonCommandHandler(IPersonService personService, ICommandEventRepository eventRepository)
 {
     this.personService   = personService;
     this.eventRepository = eventRepository;
 }