/// <summary> /// IOC 构造函数注入 /// </summary> /// <param name="commandService"></param> /// <param name="conferenceQueryService"></param> public UserController(ICommandService commandService, IContextService contextService, IUserQueryService userQueryService, IStoreOrderQueryService storeOrderQueryService) : base(commandService, contextService) { _userQueryService = userQueryService; _storeOrderQueryService = storeOrderQueryService; }
private IStoreOrderQueryService _storeOrderQueryService; //Q 端 public StoreOrderJob() { var container = (ObjectContainer.Current as AutofacObjectContainer).Container; _commandService = container.Resolve <ICommandService>(); _storeOrderQueryService = container.Resolve <IStoreOrderQueryService>(); }
public StoreController(ICommandService commandService, IContextService contextService, IStoreQueryService storeQueryService, IStoreOrderQueryService storeOrderQueryService, IGoodsQueryService goodsQueryService) : base(commandService, contextService) { _storeQueryService = storeQueryService; _storeOrderQueryService = storeOrderQueryService; _goodsQueryService = goodsQueryService; }
public StatisticsController(ICommandService commandService, IUserQueryService userQueryService, IWalletQueryService walletQueryService, IStoreOrderQueryService storeOrderQueryService, IStoreQueryService storeQueryService, IBenevolenceIndexQueryService benevolenceIndexQueryService) { _userQueryService = userQueryService; _walletQueryService = walletQueryService; _storeOrderQueryService = storeOrderQueryService; _storeQueryService = storeQueryService; _benevolenceIndexQueryService = benevolenceIndexQueryService; }
/// <summary> /// IOC 构造函数注入 /// </summary> /// <param name="commandService"></param> /// <param name="conferenceQueryService"></param> public UserController(ICommandService commandService, ISMSender smSender, IContextService contentService, IUserQueryService userQueryService, IWalletQueryService walletQueryService, ICartQueryService cartQueryService, IStoreQueryService storeQueryService, IStoreOrderQueryService storeOrderQueryService) : base(commandService, contentService) { _smSender = smSender; _userQueryService = userQueryService; _walletQueryService = walletQueryService; _cartQueryService = cartQueryService; _storeQueryService = storeQueryService; _storeOrderQueryService = storeOrderQueryService; }
public StoreOrderController(ICommandService commandService, IExpressSchedule expressSchedule, IContextService contextService, IStoreOrderQueryService storeOrderQueryService) : base(commandService, contextService) { _expressSchedule = expressSchedule; _storeOrderQueryService = storeOrderQueryService; }