コード例 #1
0
 public CcService(ISettingService settingService,
                  IPluginFinder pluginFinder,
                  WidgetSettings widgetSettings,
                  IProductAttributeParser productAttributeParser,
                  IProductAttributeService productAttributeService,
                  ILogger logger,
                  IRepository <CcDesign> ccDesignRepository,
                  IProductService productService,
                  IStoreContext storeContext,
                  IOrderService orderService,
                  IWorkContext workContext)
 {
     _settingService          = settingService;
     _pluginFinder            = pluginFinder;
     _widgetSettings          = widgetSettings;
     _productAttributeParser  = productAttributeParser;
     _productAttributeService = productAttributeService;
     _logger = logger;
     _customersCanvasSettings = settingService.LoadSetting <CcSettings>();
     _ccDesignRepository      = ccDesignRepository;
     _productService          = productService;
     _storeContext            = storeContext;
     _orderService            = orderService;
     _workContext             = workContext;
 }
コード例 #2
0
 public GBSOrderController(
     Factories.IOrderModelFactory orderModelFactory,
     IOrderService orderService,
     ICcService ccService,
     CcSettings ccSettings,
     GBSOrderSettings gbsOrderSettings,
     ILocalizationService localizationService,
     ISettingService settingService,
     IStoreService storeService,
     IWorkContext workContext,
     ILogger logger,
     IStoreContext storeContext,
     IPluginFinder pluginFinder,
     IHttpContextAccessor httpContextAccessor,
     IGBSOrderService gbsOrderService)
 {
     this._orderModelFactory   = orderModelFactory;
     this._orderService        = orderService;
     this._ccService           = ccService;
     this._ccSettings          = ccSettings;
     this._gbsOrderSettings    = gbsOrderSettings;
     this._localizationService = localizationService;
     this._settingService      = settingService;
     this._storeService        = storeService;
     this._workContext         = workContext;
     this._logger              = logger;
     this._storeContext        = storeContext;
     this._pluginFinder        = pluginFinder;
     this._httpContextAccessor = httpContextAccessor;
     this._gbsOrderService     = gbsOrderService; // EngineContext.Current.Resolve<GBSOrderService>(); //(GBSOrderService)System.Web.Mvc.DependencyResolver.Current.GetServices(typeof(GBSOrderService));
 }
コード例 #3
0
 public CcWidgetController(IProductService productService,
                           IOrderService orderService,
                           ICcService ccService,
                           IShoppingCartService cartService,
                           IWorkContext workContext,
                           IStoreContext storeContext,
                           IProductAttributeService productAttributeService,
                           ISettingService settingService,
                           IPictureService pictureService,
                           IProductAttributeParser productAttributeParser,
                           IShoppingCartService shoppingCartService,
                           IWebHelper webHelper,
                           ISpecificationAttributeService specificationAttributeService,
                           IDownloadService downloadService,
                           ILocalizationService localizationService)
 {
     _productService                = productService;
     _orderService                  = orderService;
     _ccService                     = ccService;
     _cartService                   = cartService;
     _workContext                   = workContext;
     _storeContext                  = storeContext;
     _productAttributeService       = productAttributeService;
     _settingService                = settingService;
     _pictureService                = pictureService;
     _productAttributeParser        = productAttributeParser;
     _shoppingCartService           = shoppingCartService;
     _customersCanvasSettings       = settingService.LoadSetting <CcSettings>();
     _webHelper                     = webHelper;
     _specificationAttributeService = specificationAttributeService;
     _shoppingCartController        = EngineContext.Current.Resolve <ShoppingCartController>();
     _downloadService               = downloadService;
     _localizationService           = localizationService;
 }
 public ProductPageEditorInitViewComponent(
     IProductService productService,
     ICcService ccService,
     IWorkContext workContext,
     ISettingService settingService,
     ISpecificationAttributeService specificationAttributeService,
     IProductModelFactory productModelFactory,
     IStoreContext storeContext)
 {
     _productService                = productService;
     _ccService                     = ccService;
     _workContext                   = workContext;
     _settingService                = settingService;
     _customersCanvasSettings       = settingService.LoadSetting <CcSettings>();
     _specificationAttributeService = specificationAttributeService;
     _productModelFactory           = productModelFactory;
     _storeContext                  = storeContext;
 }