コード例 #1
0
 protected AsdAppService(IAsdBus bus, IMapper mapper)
 {
     _bus    = bus ?? throw new ArgumentNullException(nameof(bus));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
コード例 #2
0
 public AsdCommandHandler(IAsdUnitOfWork unitOfWork, IAsdBus bus, IAsdDomainNotificationHandler <AsdDomainNotification> notifications)
 {
     _unitOfWork    = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _bus           = bus ?? throw new ArgumentNullException(nameof(bus));
     _notifications = notifications ?? throw new ArgumentNullException(nameof(notifications));
 }