public GoodsController(ICommandService commandService, IContextService contextService, IStoreQueryService storeQueryService, IGoodsQueryService goodsQueryService) : base(commandService, contextService) { _storeQueryService = storeQueryService; _goodsQueryService = goodsQueryService; }
public GoodsController(IHostingEnvironment hostingEnvironment, ICommandService commandService, IContextService contextService, IStoreQueryService storeQueryService, IGoodsQueryService goodsQueryService) : base(commandService, contextService) { _storeQueryService = storeQueryService; _goodsQueryService = goodsQueryService; _hostingEnvironment = hostingEnvironment; }
private IGoodsQueryService _goodsQueryService;//Q 端 public CreateSearchIndexJob() { var container = (ObjectContainer.Current as AutofacObjectContainer).Container; _goodsQueryService = container.Resolve <IGoodsQueryService>(); //初始化分词器 Segment.Init(PanGuXmlPath); }
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; }
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; }