本文整理汇总了C#中ICategoryService类的典型用法代码示例。如果您正苦于以下问题:C# ICategoryService类的具体用法?C# ICategoryService怎么用?C# ICategoryService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICategoryService类属于命名空间,在下文中一共展示了ICategoryService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TagController
public TagController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicTagService topicTagService, ICategoryService categoryService, ICacheService cacheService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
{
_topicTagService = topicTagService;
_categoryService = categoryService;
_cacheService = cacheService;
}
示例2: 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;
}
示例3: 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;
}
示例4: PriceCalculationService
public PriceCalculationService(
IDiscountService discountService,
ICategoryService categoryService,
IProductAttributeParser productAttributeParser,
IProductService productService,
ShoppingCartSettings shoppingCartSettings,
CatalogSettings catalogSettings,
IProductAttributeService productAttributeService,
IDownloadService downloadService,
ICommonServices services,
HttpRequestBase httpRequestBase,
ITaxService taxService)
{
this._discountService = discountService;
this._categoryService = categoryService;
this._productAttributeParser = productAttributeParser;
this._productService = productService;
this._shoppingCartSettings = shoppingCartSettings;
this._catalogSettings = catalogSettings;
this._productAttributeService = productAttributeService;
this._downloadService = downloadService;
this._services = services;
this._httpRequestBase = httpRequestBase;
this._taxService = taxService;
}
示例5: ImportManager
public ImportManager(
IProductService productService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IPictureService pictureService,
IUrlRecordService urlRecordService,
SeoSettings seoSettings,
IEventPublisher eventPublisher,
IRepository<Product> rsProduct,
IRepository<ProductCategory> rsProductCategory,
IRepository<ProductManufacturer> rsProductManufacturer,
IRepository<Picture> rsPicture,
IRepository<ProductPicture> rsProductPicture,
IRepository<UrlRecord> rsUrlRecord,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
IStoreMappingService storeMappingService)
{
this._productService = productService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._pictureService = pictureService;
this._urlRecordService = urlRecordService;
this._seoSettings = seoSettings;
this._eventPublisher = eventPublisher;
this._rsProduct = rsProduct;
this._rsProductCategory = rsProductCategory;
this._rsProductManufacturer = rsProductManufacturer;
this._rsProductPicture = rsProductPicture;
this._rsUrlRecord = rsUrlRecord;
this._rsPicture = rsPicture;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._storeMappingService = storeMappingService;
}
示例6: ExportManager
public ExportManager(ICategoryService categoryService,
IManufacturerService manufacturerService,
IProductService productService,
IProductAttributeService productAttributeService,
IProductTemplateService productTemplateService,
IPictureService pictureService,
INewsLetterSubscriptionService newsLetterSubscriptionService,
ILanguageService languageService,
MediaSettings mediaSettings,
ICommonServices services,
IStoreMappingService storeMappingService)
{
_categoryService = categoryService;
_manufacturerService = manufacturerService;
_productService = productService;
_productAttributeService = productAttributeService;
_productTemplateService = productTemplateService;
_pictureService = pictureService;
_newsLetterSubscriptionService = newsLetterSubscriptionService;
_languageService = languageService;
_mediaSettings = mediaSettings;
_services = services;
_storeMappingService = storeMappingService;
Logger = NullLogger.Instance;
}
示例7: FroogleService
public FroogleService(IGoogleService googleService,
IProductService productService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IPictureService pictureService,
ICurrencyService currencyService,
ISettingService settingService,
IWorkContext workContext,
IMeasureService measureService,
MeasureSettings measureSettings,
FroogleSettings froogleSettings,
CurrencySettings currencySettings,
GoogleProductObjectContext objectContext)
{
this._googleService = googleService;
this._productService = productService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._pictureService = pictureService;
this._currencyService = currencyService;
this._settingService = settingService;
this._workContext = workContext;
this._measureService = measureService;
this._measureSettings = measureSettings;
this._froogleSettings = froogleSettings;
this._currencySettings = currencySettings;
this._objectContext = objectContext;
}
示例8: TopicTagService
/// <summary>
/// Constructor
/// </summary>
/// <param name="tagRepository"></param>
/// <param name="topicRepository"></param>
/// <param name="categoryService"></param>
public TopicTagService(ITopicTagRepository tagRepository, ITopicRepository topicRepository, ICategoryService categoryService, IBadgeService badgeService)
{
_tagRepository = tagRepository;
_topicRepository = topicRepository;
_categoryService = categoryService;
_badgeService = badgeService;
}
示例9: GetFormattedBreadCrumb
/// <summary>
/// Get formatted category breadcrumb
/// Note: ACL and store mapping is ignored
/// </summary>
/// <param name="category">Category</param>
/// <param name="categoryService">Category service</param>
/// <param name="separator">Separator</param>
/// <param name="languageId">Language identifier for localization</param>
/// <returns>Formatted breadcrumb</returns>
public static string GetFormattedBreadCrumb(this Category category,
ICategoryService categoryService,
string separator = ">>", int languageId = 0)
{
if (category == null)
throw new ArgumentNullException("category");
string result = string.Empty;
//used to prevent circular references
var alreadyProcessedCategoryIds = new List<int>();
while (category != null && //not null
!category.Deleted && //not deleted
!alreadyProcessedCategoryIds.Contains(category.Id)) //prevent circular references
{
var categoryName = category.GetLocalized(x => x.Name, languageId);
if (String.IsNullOrEmpty(result))
{
result = categoryName;
}
else
{
result = string.Format("{0} {1} {2}", categoryName, separator, result);
}
alreadyProcessedCategoryIds.Add(category.Id);
category = categoryService.GetCategoryById(category.ParentCategoryId);
}
return result;
}
示例10: CustomerRoleController
public CustomerRoleController(ICustomerService customerService,
ILocalizationService localizationService,
ICustomerActivityService customerActivityService,
IPermissionService permissionService,
IProductService productService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IStoreService storeService,
IVendorService vendorService,
IWorkContext workContext,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
ICacheManager cacheManager)
{
this._customerService = customerService;
this._localizationService = localizationService;
this._customerActivityService = customerActivityService;
this._permissionService = permissionService;
this._productService = productService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._storeService = storeService;
this._vendorService = vendorService;
this._workContext = workContext;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._cacheManager = cacheManager;
}
示例11: GetCategoryBreadCrumb
/// <summary>
/// Get category breadcrumb
/// </summary>
/// <param name="category">Category</param>
/// <param name="categoryService">Category service</param>
/// <param name="aclService">ACL service</param>
/// <param name="storeMappingService">Store mapping service</param>
/// <param name="showHidden">A value indicating whether to load hidden records</param>
/// <returns>Category breadcrumb </returns>
public static IList<Category> GetCategoryBreadCrumb(this Category category,
ICategoryService categoryService,
IAclService aclService,
IStoreMappingService storeMappingService,
bool showHidden = false)
{
if (category == null)
throw new ArgumentNullException("category");
var result = new List<Category>();
//used to prevent circular references
var alreadyProcessedCategoryIds = new List<int>();
while (category != null && //not null
!category.Deleted && //not deleted
(showHidden || category.Published) && //published
(showHidden || aclService.Authorize(category)) && //ACL
(showHidden || storeMappingService.Authorize(category)) && //Store mapping
!alreadyProcessedCategoryIds.Contains(category.Id)) //prevent circular references
{
result.Add(category);
alreadyProcessedCategoryIds.Add(category.Id);
category = categoryService.GetCategoryById(category.ParentCategoryId);
}
result.Reverse();
return result;
}
示例12: TopicTagService
/// <summary>
/// Constructor
/// </summary>
/// <param name="context"></param>
/// <param name="topicService"></param>
/// <param name="categoryService"></param>
/// <param name="badgeService"></param>
public TopicTagService(IMVCForumContext context, ITopicService topicService, ICategoryService categoryService, IBadgeService badgeService)
{
_topicService = topicService;
_categoryService = categoryService;
_badgeService = badgeService;
_context = context as MVCForumContext;
}
示例13: CollectibleExportService
public CollectibleExportService(IProductService productService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IPictureService pictureService,
IUrlRecordService urlRecordService,
IStoreContext storeContext,
INewsLetterSubscriptionService newsLetterSubscriptionService,
ICountryService countryService, //not used
IStateProvinceService stateProvinceService,
IConsignorService consignorService,
IAuthenticationService authenticationService,
ILogger logger,
IRepository<AUCountryLotRecord> countrylotRepo,
IRepository<AUStateProvinceLotRecord> stateprovincelotRepo
)
{
this._productService = productService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._pictureService = pictureService;
this._urlRecordService = urlRecordService;
this._storeContext = storeContext;
this._newsLetterSubscriptionService = newsLetterSubscriptionService;
this._countryService = countryService;
this._stateProvinceService = stateProvinceService;
this._consignorService = consignorService;
this._authenticationService = authenticationService;
this._logger = logger; //NJM: AUConsignor
this._countrylotRepo = countrylotRepo;
this._stateprovincelotRepo = stateprovincelotRepo;
}
示例14: ProductController
public ProductController(IUnitOfWork unitOfWork, ICategoryService categoryService, IProductService productService, IUserService userService)
{
this._unitOfWork = unitOfWork;
this._categoryService = categoryService;
this._productService = productService;
this._userService = userService;
}
示例15: CategoryController
public CategoryController(ICategoryService categoryService, ICategoryTemplateService categoryTemplateService,
IManufacturerService manufacturerService, IProductService productService,
ICustomerService customerService,
IUrlRecordService urlRecordService, IPictureService pictureService, ILanguageService languageService,
ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
IDiscountService discountService, IPermissionService permissionService,
IAclService aclService,
IExportManager exportManager, IWorkContext workContext,
ICustomerActivityService customerActivityService, AdminAreaSettings adminAreaSettings,
CatalogSettings catalogSettings)
{
this._categoryService = categoryService;
this._categoryTemplateService = categoryTemplateService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._customerService = customerService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._discountService = discountService;
this._permissionService = permissionService;
this._aclService = aclService;
this._exportManager = exportManager;
this._workContext = workContext;
this._customerActivityService = customerActivityService;
this._adminAreaSettings = adminAreaSettings;
this._catalogSettings = catalogSettings;
}