예제 #1
0
 public OrderUseCaseService(IOrderRepository repository, IAccountQueryService accountQueryService, IEventBus eventBus, IStateManager stateManager, IUnitofWork unitofWork, IGoodsQueryService goodsQueryService, IGoodsActorService goodsActorService)
 {
     this.repository          = repository;
     this.unitofWork          = unitofWork;
     this.eventBus            = eventBus;
     this.stateManager        = stateManager;
     this.goodsQueryService   = goodsQueryService;
     this.goodsActorService   = goodsActorService;
     this.accountQueryService = accountQueryService;
 }
예제 #2
0
 public TradeEventHandler(IOrderRepository repository, ILogisticsRepository logisticsRepository, ITradeLogRepository tradeLogRepository, IEventBus eventBus, IStateManager stateManager, IUnitofWork unitofWork, IGoodsActorService goodsActorService)
 {
     this.repository          = repository;
     this.logisticsRepository = logisticsRepository;
     this.tradeLogRepository  = tradeLogRepository;
     this.unitofWork          = unitofWork;
     this.eventBus            = eventBus;
     this.stateManager        = stateManager;
     this.goodsActorService   = goodsActorService;
 }
 public GoodsUseCaseService(IGoodsRepository repository, IGoodsCategoryRepository goodsCategoryRepository, IEsGoodsRepository esGoodsRepository, ILocalEventBus localEventBus, IServiceProxyFactory serviceProxyFactory, IEventBus eventBus, IStateManager stateManager, IUnitofWork unitofWork)
 {
     this.repository = repository;
     this.goodsCategoryRepository = goodsCategoryRepository;
     this.unitofWork          = unitofWork;
     this.eventBus            = eventBus;
     this.stateManager        = stateManager;
     this.serviceProxyFactory = serviceProxyFactory;
     this.actorService        = serviceProxyFactory.CreateActorProxy <IGoodsActorService>();
     this.esGoodsRepository   = esGoodsRepository;
     this.localEventBus       = localEventBus;
 }