本文整理汇总了C#中IProductService类的典型用法代码示例。如果您正苦于以下问题:C# IProductService类的具体用法?C# IProductService怎么用?C# IProductService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IProductService类属于命名空间,在下文中一共展示了IProductService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CompareProductsService
/// <summary>
/// Ctor
/// </summary>
/// <param name="httpContext">HTTP context</param>
/// <param name="productService">Product service</param>
/// <param name="catalogSettings">Catalog settings</param>
public CompareProductsService(HttpContextBase httpContext, IProductService productService,
CatalogSettings catalogSettings)
{
this._httpContext = httpContext;
this._productService = productService;
this._catalogSettings = catalogSettings;
}
示例2: CampaignController
public CampaignController(
ICampaignService campaignService,
ITShirtCostService tshirtService,
IProductService productService,
IPromotionService promotionService,
IRepository<CurrencyRecord> currencyRepository,
IWorkContextAccessor wca,
INotifier notifier,
IOrchardServices services,
ICookieCultureService cookieCultureService,
ICountryService countryService)
{
_currencyRepository = currencyRepository;
Services = services;
_tshirtService = tshirtService;
_productService = productService;
_campaignService = campaignService;
_promotionService = promotionService;
_wca = wca;
_notifier = notifier;
Logger = NullLogger.Instance;
_cookieCultureService = cookieCultureService;
//var culture = _wca.GetContext().CurrentCulture.Trim();
_cultureUsed = _wca.GetContext().CurrentCulture.Trim();
//cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
_countryService = countryService;
}
示例3: FroogleService
public FroogleService(IScheduleTaskService scheduleTaskService,
IGoogleService googleService,
IProductService productService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IPictureService pictureService,
ICurrencyService currencyService,
IWebHelper webHelper,
ISettingService settingService,
IWorkContext workContext,
IMeasureService measureService,
MeasureSettings measureSettings,
StoreInformationSettings storeInformationSettings,
FroogleSettings froogleSettings,
CurrencySettings currencySettings,
GoogleProductObjectContext objectContext)
{
this._scheduleTaskService = scheduleTaskService;
this._googleService = googleService;
this._productService = productService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._pictureService = pictureService;
this._currencyService = currencyService;
this._webHelper = webHelper;
this._settingService = settingService;
this._workContext = workContext;
this._measureService = measureService;
this._measureSettings = measureSettings;
this._storeInformationSettings = storeInformationSettings;
this._froogleSettings = froogleSettings;
this._currencySettings = currencySettings;
this._objectContext = objectContext;
}
示例4: BackwardCompatibility2XController
public BackwardCompatibility2XController(IProductService productService,
ICategoryService categoryService, IManufacturerService manufacturerService)
{
this._productService = productService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
}
示例5: MiscFacebookShopController
public MiscFacebookShopController(IAclService aclService,
ICacheManager cacheManager,
CatalogSettings catalogSettings,
ICategoryService categoryService,
ICurrencyService currencyService,
ILocalizationService localizationService,
IPermissionService permissionService,
IPictureService pictureService,
IPriceCalculationService priceCalculationService,
IPriceFormatter priceFormatter,
IProductService productService,
IStoreContext storeContext,
IStoreMappingService storeMappingService,
ITaxService taxService,
IWorkContext workContext)
{
this._aclService = aclService;
this._cacheManager = cacheManager;
this._catalogSettings = catalogSettings;
this._categoryService = categoryService;
this._currencyService = currencyService;
this._localizationService = localizationService;
this._permissionService = permissionService;
this._pictureService = pictureService;
this._priceCalculationService = priceCalculationService;
this._priceFormatter = priceFormatter;
this._productService = productService;
this._storeContext = storeContext;
this._storeMappingService = storeMappingService;
this._taxService = taxService;
this._workContext = workContext;
}
示例6: ProductController
public ProductController()
{
// productService = ServiceLocator.GetProductService();
IKernel ninjectKernel = new StandardKernel();
ninjectKernel.Bind<IProductService>().To<ProductService>();
serviceProduct = ninjectKernel.Get<IProductService>();
}
示例7: ManufacturerController
public ManufacturerController(ICategoryService categoryService, IManufacturerService manufacturerService,
IManufacturerTemplateService manufacturerTemplateService, IProductService productService,
ICustomerService customerService, IStoreService storeService,
IStoreMappingService storeMappingService,
IUrlRecordService urlRecordService, IPictureService pictureService,
ILanguageService languageService, ILocalizationService localizationService,
ILocalizedEntityService localizedEntityService, IExportManager exportManager,
ICustomerActivityService customerActivityService, IAclService aclService,
IPermissionService permissionService,
AdminAreaSettings adminAreaSettings, CatalogSettings catalogSettings)
{
this._categoryService = categoryService;
this._manufacturerTemplateService = manufacturerTemplateService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._customerService = customerService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._exportManager = exportManager;
this._customerActivityService = customerActivityService;
this._aclService = aclService;
this._permissionService = permissionService;
this._adminAreaSettings = adminAreaSettings;
this._catalogSettings = catalogSettings;
}
示例8: ProductController
public ProductController(IProductService productService,
IProductTemplateService productTemplateService,
ICategoryService categoryService, IManufacturerService manufacturerService,
IWorkContext workContext, ILanguageService languageService,
ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
ISpecificationAttributeService specificationAttributeService, IPictureService pictureService,
ITaxCategoryService taxCategoryService, IProductTagService productTagService,
ICopyProductService copyProductService, IPdfService pdfService,
IExportManager exportManager, IImportManager importManager,
ICustomerActivityService customerActivityService,
IPermissionService permissionService, AdminAreaSettings adminAreaSettings)
{
this._productService = productService;
this._productTemplateService = productTemplateService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._workContext = workContext;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._specificationAttributeService = specificationAttributeService;
this._pictureService = pictureService;
this._taxCategoryService = taxCategoryService;
this._productTagService = productTagService;
this._copyProductService = copyProductService;
this._pdfService = pdfService;
this._exportManager = exportManager;
this._importManager = importManager;
this._customerActivityService = customerActivityService;
this._permissionService = permissionService;
this._adminAreaSettings = adminAreaSettings;
}
示例9: RecentlyViewedProductsService
/// <summary>
/// Ctor
/// </summary>
/// <param name="httpContext">HTTP context</param>
/// <param name="productService">Product service</param>
/// <param name="catalogSettings">Catalog settings</param>
public RecentlyViewedProductsService(HttpContextBase httpContext, IProductService productService,
CatalogSettings catalogSettings)
{
this._httpContext = httpContext;
this._productService = productService;
this._catalogSettings = catalogSettings;
}
示例10: MainViewModel
public MainViewModel(INavigationService navigationService, IProductService productService)
: base(navigationService)
{
_productService = productService;
Title = "Caliburn Demo";
Products = new BindableCollection<Product>(_productService.GetAll());
}
示例11: CopyProductService
public CopyProductService(IProductService productService,
IProductAttributeService productAttributeService,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
IPictureService pictureService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
ISpecificationAttributeService specificationAttributeService,
IDownloadService downloadService,
IProductAttributeParser productAttributeParser,
IUrlRecordService urlRecordService,
IStoreMappingService storeMappingService)
{
this._productService = productService;
this._productAttributeService = productAttributeService;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._pictureService = pictureService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._specificationAttributeService = specificationAttributeService;
this._downloadService = downloadService;
this._productAttributeParser = productAttributeParser;
this._urlRecordService = urlRecordService;
this._storeMappingService = storeMappingService;
}
示例12: ProductStockAdjustmentViewModel
public ProductStockAdjustmentViewModel(IEventAggregator eventAggregator, IProductService productService)
{
EventAggregator = eventAggregator;
ProductService = productService;
DisplayName = "New Stock Adjustment";
}
示例13: PromoController
public PromoController(
IPromoUtilities promoUtilities,
IPriceFormatter priceFormatter,
IWorkContext workContext,
PromoSettings promoSettings,
IProductMappingService productMappingService,
IProductPromoMappingService productPromoMappingService,
IPromoDetailService promoDetailService,
IStoreService storeService,
IStoreContext storeContext,
IAttributeValueService attributeValueService,
ICurrencyService currencyService,
IPromoPictureService promoPictureService,
IPictureService pictureService,
IProductService productService,
ILocalizationService localizationService)
{
this._promoUtilities = promoUtilities;
this._priceFormatter = priceFormatter;
this._workContext = workContext;
this._productMappingService = productMappingService;
this._productPromoMappingService = productPromoMappingService;
this._promoDetailService = promoDetailService;
this._promoSettings = promoSettings;
this._storeService = storeService;
this._storeContext = storeContext;
this._attributeValueService = attributeValueService;
this._currencyService = currencyService;
this._promoPictureService = promoPictureService;
this._pictureService = pictureService;
this._productService = productService;
this._localizationService = localizationService;
}
示例14: HomeInstallationQuoteController
public HomeInstallationQuoteController(
IWorkContext workContext,
ISettingService settingService,
IGenericAttributeService genericAttributeService,
ILocalizationService localizationService,
IMessageTokenProvider messageTokenProvider,
IEmailAccountService emailAccountService,
IEventPublisher eventPublisher,
IMessageTemplateService messageTemplateService,
ITokenizer tokenizer,
IQueuedEmailService queuedEmailService,
IProductService productService,
CaptchaSettings captchaSettings,
EmailAccountSettings emailAccountSettings)
{
_workContext = workContext;
_settingService = settingService;
_genericAttributeService = genericAttributeService;
_localizationService = localizationService;
_messageTokenProvider = messageTokenProvider;
_emailAccountService = emailAccountService;
_eventPublisher = eventPublisher;
_messageTemplateService = messageTemplateService;
_tokenizer = tokenizer;
_queuedEmailService = queuedEmailService;
_productService = productService;
_captchaSettings = captchaSettings;
_emailAccountSettings = emailAccountSettings;
}
示例15: DiscountController
public DiscountController(IDiscountService discountService,
ILocalizationService localizationService,
ICurrencyService currencyService,
ICategoryService categoryService,
IProductService productService,
IWebHelper webHelper,
IDateTimeHelper dateTimeHelper,
ICustomerActivityService customerActivityService,
CurrencySettings currencySettings,
IPermissionService permissionService,
IWorkContext workContext,
IManufacturerService manufacturerService,
IStoreService storeService,
IVendorService vendorService,
IOrderService orderService,
IPriceFormatter priceFormatter)
{
this._discountService = discountService;
this._localizationService = localizationService;
this._currencyService = currencyService;
this._categoryService = categoryService;
this._productService = productService;
this._webHelper = webHelper;
this._dateTimeHelper = dateTimeHelper;
this._customerActivityService = customerActivityService;
this._currencySettings = currencySettings;
this._permissionService = permissionService;
this._workContext = workContext;
this._manufacturerService = manufacturerService;
this._storeService = storeService;
this._vendorService = vendorService;
this._orderService = orderService;
this._priceFormatter = priceFormatter;
}