本文整理汇总了C#中IUrlRecordService类的典型用法代码示例。如果您正苦于以下问题:C# IUrlRecordService类的具体用法?C# IUrlRecordService怎么用?C# IUrlRecordService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUrlRecordService类属于命名空间,在下文中一共展示了IUrlRecordService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VendorController
public VendorController(IWorkContext workContext,
ILocalizationService localizationService,
ICustomerService customerService,
IWorkflowMessageService workflowMessageService,
IVendorService vendorService,
IUrlRecordService urlRecordService,
IPictureService pictureService,
LocalizationSettings localizationSettings,
VendorSettings vendorSettings,
CaptchaSettings captchaSettings,
MediaSettings mediaSettings)
{
this._workContext = workContext;
this._localizationService = localizationService;
this._customerService = customerService;
this._workflowMessageService = workflowMessageService;
this._vendorService = vendorService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._localizationSettings = localizationSettings;
this._vendorSettings = vendorSettings;
this._captchaSettings = captchaSettings;
this._mediaSettings = mediaSettings;
}
示例2: GetSeName
/// <summary>
/// Từ bộ 3 giá trị đọc ra slug key tương ứng, tuy nhiên, có 1 khác biệt so với IUrlRecordService.GetActiveSlugCached()
/// là hàm này cho phép chúng ta có thể lấy về slug mặc định với languageId=0 trong trường hợp languageId<>0 và ko tìm thấy
/// urlRecord phù hợp
///
/// Chúng ta cũng có thể chỉ định rằng chỉ load urlRecord cho ngôn ngữ khác khi hệ thống có ít nhất 2 ngôn ngữ đang hoạt động, ngược lại
/// thì cứ load theo languageid=0 cho nó lành
/// </summary>
/// /// <param name="entityId">Entity identifier</param>
/// <param name="entityName">Entity name</param>
/// <param name="languageId">Language identifier</param>
/// <param name="returnDefaultValue">A value indicating whether to return default value (if language specified one is not found)</param>
/// <param name="ensureTwoPublishedLanguages">A value indicating whether to ensure that we have at least two published languages; otherwise, load only default value</param>
/// <returns>Search engine name (slug)</returns>
public static string GetSeName(int entityId, string entityName, int languageId, IUrlRecordService urlRecordService = null,
bool returnDefaultValue = true, bool ensureTwoPublishedLanguages = true)
{
string result = string.Empty;
var engine = EngineContext.Current;
if(urlRecordService == null)
urlRecordService = engine.Resolve<IUrlRecordService>();
if (languageId > 0)
{
// giải quyết ràng buộc của ensureTwoPublishedLanguages
bool loadLocalizedValue = true;
if (ensureTwoPublishedLanguages)
{
var languageService = engine.Resolve<ILanguageService>();
loadLocalizedValue = languageService.GetAllLanguages().Count >= 2;
}
// như vậy trong trường hợp chỉ có 1 ngôn ngữ active thì cho dù có định nghĩa seo url riêng cho ngôn ngữ đó, hệ thống
// vẫn sẽ chọn dùng seo url mặc định với laguageid = 0
if (loadLocalizedValue)
result = urlRecordService.GetActiveSlugCached(entityId, entityName, languageId);
}
if (string.IsNullOrEmpty(result) && returnDefaultValue)
result = urlRecordService.GetActiveSlugCached(entityId, entityName, 0);
return result;
}
示例3: BranchGroupReadController
public BranchGroupReadController(IPermissionService permissionService,
IBranchService branchService,
ILanguageService languageService,
ILocalizationService localizationService,
ILocalizedEntityService localizedEntityService,
IPictureService pictureService,
IUrlRecordService urlRecordService,
ICustomerActivityService customerActivityService,
IWorkContext workContext,
ICacheManager cacheManager,
BranchSettings branchSettings,
IWebHelper webHelper)
{
_permissionService = permissionService;
_branchService = branchService;
_languageService = languageService;
_localizationService = localizationService;
_localizedEntityService = localizedEntityService;
_pictureService = pictureService;
_urlRecordService = urlRecordService;
_customerActivityService = customerActivityService;
_workContext = workContext;
_cacheManager = cacheManager;
_branchSettings = branchSettings;
_webHelper = webHelper;
}
示例4: 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;
}
示例5: CommonController
public CommonController(IPaymentService paymentService,
IShippingService shippingService,
IShoppingCartService shoppingCartService,
ICurrencyService currencyService,
IMeasureService measureService,
ICustomerService customerService,
IUrlRecordService urlRecordService,
IWebHelper webHelper,
CurrencySettings currencySettings,
MeasureSettings measureSettings,
IDateTimeHelper dateTimeHelper,
ILanguageService languageService,
IWorkContext workContext,
IStoreContext storeContext,
IPermissionService permissionService,
ILocalizationService localizationService)
{
this._paymentService = paymentService;
this._shippingService = shippingService;
this._shoppingCartService = shoppingCartService;
this._currencyService = currencyService;
this._measureService = measureService;
this._customerService = customerService;
this._urlRecordService = urlRecordService;
this._webHelper = webHelper;
this._currencySettings = currencySettings;
this._measureSettings = measureSettings;
this._dateTimeHelper = dateTimeHelper;
this._languageService = languageService;
this._workContext = workContext;
this._storeContext = storeContext;
this._permissionService = permissionService;
this._localizationService = localizationService;
}
示例6: ManufacturerController
public ManufacturerController(ICategoryService categoryService, IManufacturerService manufacturerService,
IManufacturerTemplateService manufacturerTemplateService, IProductService productService,
IStoreService storeService, IStoreMappingService storeMappingService,
IUrlRecordService urlRecordService, IPictureService pictureService,
ILanguageService languageService, ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
IWorkContext workContext,
ICustomerActivityService customerActivityService, IPermissionService permissionService,
IDateTimeHelper dateTimeHelper,
AdminAreaSettings adminAreaSettings,
CatalogSettings catalogSettings)
{
this._categoryService = categoryService;
this._manufacturerTemplateService = manufacturerTemplateService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._workContext = workContext;
this._customerActivityService = customerActivityService;
this._permissionService = permissionService;
this._dateTimeHelper = dateTimeHelper;
this._adminAreaSettings = adminAreaSettings;
this._catalogSettings = catalogSettings;
}
示例7: DiyGroupController
public DiyGroupController(IPermissionService permissionService,
IDiyService branchService,
ILanguageService languageService,
ILocalizationService localizationService,
IStoreMappingService storeMappingService,
ILocalizedEntityService localizedEntityService,
IStoreService storeService,
IPictureService pictureService,
IUrlRecordService urlRecordService,
ICustomerActivityService customerActivityService,
IWorkContext workContext,
ICacheManager cacheManager,
DiySettings diySettings,
IWebHelper webHelper)
{
_permissionService = permissionService;
_diyService = branchService;
_languageService = languageService;
_localizationService = localizationService;
_storeMappingService = storeMappingService;
_localizedEntityService = localizedEntityService;
_storeService = storeService;
_pictureService = pictureService;
_urlRecordService = urlRecordService;
_customerActivityService = customerActivityService;
_workContext = workContext;
_cacheManager = cacheManager;
_diySettings = diySettings;
_webHelper = webHelper;
}
示例8: 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;
}
示例9: 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;
}
示例10: VendorController
public VendorController(ICustomerService customerService,
ILocalizationService localizationService,
IVendorService vendorService,
IPermissionService permissionService,
IUrlRecordService urlRecordService,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
VendorSettings vendorSettings,
IPictureService pictureService,
IProductService productService,
IWorkContext workContext,
IGenericAttributeService genericAttributeService,
IWorkflowMessageService workflowMessageService)
{
this._customerService = customerService;
this._localizationService = localizationService;
this._vendorService = vendorService;
this._permissionService = permissionService;
this._urlRecordService = urlRecordService;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._vendorSettings = vendorSettings;
this._pictureService = pictureService;
this._productService = productService;
this._workContext = workContext;
this._workflowMessageService = workflowMessageService;
this._genericAttributeService = genericAttributeService;
}
示例11: 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;
}
示例12: mobSocialApiController
public mobSocialApiController(IPermissionService permissionService,
IWorkContext workContext, AdminAreaSettings adminAreaSettings, ILocalizationService localizationService,
IPictureService pictureService, IMobSocialService socialNetworkService, ICustomerService customerService,
ICustomerAlbumPictureService customerAlbumPictureService, mobSocialSettings mobSocialSettings, MediaSettings mediaSettings, CustomerSettings customerSettings,
ForumSettings forumSettings, RewardPointsSettings rewardPointsSettings, OrderSettings orderSettings,
IStoreContext storeContext, IWebHelper webHelper, IUrlRecordService urlRecordService, IRepository<UrlRecord> urlRecordRepository,
ICustomerVideoAlbumService customerVideoAlbumService, CustomerProfileViewService customerProfileViewService)
{
_permissionService = permissionService;
_workContext = workContext;
_adminAreaSettings = adminAreaSettings;
_localizationService = localizationService;
_pictureService = pictureService;
_socialNetworkService = socialNetworkService;
_customerService = customerService;
_customerAlbumPictureService = customerAlbumPictureService;
_mobSocialSettings = mobSocialSettings;
_mediaSettings = mediaSettings;
_customerSettings = customerSettings;
_forumSettings = forumSettings;
_rewardPointsSettings = rewardPointsSettings;
_orderSettings = orderSettings;
_storeContext = storeContext;
_webHelper = webHelper;
_urlRecordService = urlRecordService;
_urlRecordRepository = urlRecordRepository;
_customerVideoAlbumService = customerVideoAlbumService;
_customerProfileViewService = customerProfileViewService;
}
示例13: 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;
}
示例14: TopicController
public TopicController(ITopicService topicService,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
ILocalizationService localizationService,
IPermissionService permissionService,
IStoreService storeService,
IStoreMappingService storeMappingService,
IUrlRecordService urlRecordService,
ITopicTemplateService topicTemplateService,
ICustomerService customerService,
ICustomerActivityService customerActivityService,
IAclService aclService)
{
this._topicService = topicService;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._localizationService = localizationService;
this._permissionService = permissionService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._urlRecordService = urlRecordService;
this._topicTemplateService = topicTemplateService;
this._customerService = customerService;
this._customerActivityService = customerActivityService;
this._aclService = aclService;
}
示例15: SelectSellController
public SelectSellController(IProductService productService,
IProductTemplateService productTemplateService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
ICustomerService customerService,
IUrlRecordService urlRecordService,
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,
IAclService aclService,
IStoreService storeService,
IOrderService orderService,
IStoreMappingService storeMappingService,
IVendorService vendorService,
IShippingService shippingService,
IShipmentService shipmentService,
ICurrencyService currencyService,
CurrencySettings currencySettings,
IMeasureService measureService,
MeasureSettings measureSettings,
AdminAreaSettings adminAreaSettings,
IDateTimeHelper dateTimeHelper,
IDiscountService discountService,
IProductAttributeService productAttributeService,
IBackInStockSubscriptionService backInStockSubscriptionService,
IShoppingCartService shoppingCartService,
IProductAttributeFormatter productAttributeFormatter,
IProductAttributeParser productAttributeParser,
IDownloadService downloadService,
IStoreContext storeContext,
IRepository<StoreMapping> storeMapping)
{
_workContext = workContext;
_productService = productService;
_pictureService = pictureService;
_localizationService = localizationService;
_categoryService = categoryService;
_manufacturerService = manufacturerService;
_storeService = storeService;
_shippingService = shippingService;
_vendorService = vendorService;
_storeMappingService = storeMappingService;
_storeContext = storeContext;
_storeMapping = storeMapping;
}