Exemple #1
0
 public GoodsController(ICommandService commandService, IContextService contextService,
                        IStoreQueryService storeQueryService,
                        IGoodsQueryService goodsQueryService) : base(commandService, contextService)
 {
     _storeQueryService = storeQueryService;
     _goodsQueryService = goodsQueryService;
 }
Exemple #2
0
 public GoodsController(IHostingEnvironment hostingEnvironment, ICommandService commandService, IContextService contextService,
                        IStoreQueryService storeQueryService,
                        IGoodsQueryService goodsQueryService) : base(commandService, contextService)
 {
     _storeQueryService  = storeQueryService;
     _goodsQueryService  = goodsQueryService;
     _hostingEnvironment = hostingEnvironment;
 }
Exemple #3
0
        private IGoodsQueryService _goodsQueryService;//Q 端

        public CreateSearchIndexJob()
        {
            var container = (ObjectContainer.Current as AutofacObjectContainer).Container;

            _goodsQueryService = container.Resolve <IGoodsQueryService>();
            //初始化分词器
            Segment.Init(PanGuXmlPath);
        }
Exemple #4
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;
 }
Exemple #5
0
 public StoreController(ICommandService commandService, IContextService contextService,
                        IUserQueryService userQueryService,
                        IStoreQueryService storeQueryService,
                        IStoreOrderQueryService storeOrderQueryService,
                        IGoodsQueryService goodsQueryService) : base(commandService, contextService)
 {
     _userQueryService       = userQueryService;
     _storeQueryService      = storeQueryService;
     _storeOrderQueryService = storeOrderQueryService;
     _goodsQueryService      = goodsQueryService;
 }