Beispiel #1
0
 public CartController(ICommandService commandService, IContextService contextService,
                       IUserQueryService userQueryService,
                       ICartQueryService cartQueryService) : base(commandService, contextService)
 {
     _userQueryService = userQueryService;
     _cartQueryService = cartQueryService;
 }
		public ShoppingCartController(
			ILoggerFactory loggerfactory,
			IServiceProvider serviceProvider,
			IAlbumQueryService albumQueryService,
            ICartQueryService cartQueryService,
            ICartCommandService cartCommandService)
		{
			_serviceProvider = serviceProvider;
			_albumQueryService = albumQueryService;
		    _cartQueryService = cartQueryService;
		    _cartCommandService = cartCommandService;
		    _logger = loggerfactory.CreateLogger(nameof(StoreController));
		}
		public ShoppingCartController(
			ILoggerFactory loggerfactory,
			IAlbumQueryService albumQueryService,
            ICartQueryService cartQueryService,
            ICartCommandService cartCommandService,
            IOptions<AppSettings> appSettingsOptions)
		{
			_albumQueryService = albumQueryService;
		    _cartQueryService = cartQueryService;
		    _cartCommandService = cartCommandService;
		    _logger = loggerfactory.CreateLogger(nameof(StoreController));
		    _appSettings = appSettingsOptions.Value;
		}
 public ShoppingCartController(
     ILoggerFactory loggerfactory,
     IServiceProvider serviceProvider,
     IAlbumQueryService albumQueryService,
     ICartQueryService cartQueryService,
     ICartCommandService cartCommandService)
 {
     _serviceProvider    = serviceProvider;
     _albumQueryService  = albumQueryService;
     _cartQueryService   = cartQueryService;
     _cartCommandService = cartCommandService;
     _logger             = loggerfactory.CreateLogger(nameof(StoreController));
 }
 public ShoppingCartController(
     ILoggerFactory loggerfactory,
     IAlbumQueryService albumQueryService,
     ICartQueryService cartQueryService,
     ICartCommandService cartCommandService,
     IOptions <AppSettings> appSettingsOptions)
 {
     _albumQueryService  = albumQueryService;
     _cartQueryService   = cartQueryService;
     _cartCommandService = cartCommandService;
     _logger             = loggerfactory.CreateLogger(nameof(StoreController));
     _appSettings        = appSettingsOptions.Value;
 }
Beispiel #6
0
 /// <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;
 }