本文整理汇总了C#中IContentLoader类的典型用法代码示例。如果您正苦于以下问题:C# IContentLoader类的具体用法?C# IContentLoader怎么用?C# IContentLoader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IContentLoader类属于命名空间,在下文中一共展示了IContentLoader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TagsScheduledJob
public TagsScheduledJob()
{
IsStoppable = true;
_contentTypeRepository = ServiceLocator.Current.GetInstance<IContentTypeRepository>();
_tagService = ServiceLocator.Current.GetInstance<ITagService>();
_contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
}
示例2: InMemoryPriceDetailService
public InMemoryPriceDetailService(ReferenceConverter referenceConverter)
{
this._referenceConverter = referenceConverter;
_contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
_relationRepository = ServiceLocator.Current.GetInstance<IRelationRepository>();
}
示例3: PageContextActionFilter
// private readonly ViewModelFactory _modelFactory;
/// <summary>
/// Initializes a new instance of the <see cref="PageContextActionFilter"/> class.
/// </summary>
public PageContextActionFilter(IContentLoader contentLoader, UrlResolver urlResolver, ILanguageBranchRepository languageBranchRepository, ISiteSettingsProvider siteConfiguration)
{
_contentLoader = contentLoader;
_urlResolver = urlResolver;
_languageBranchRepository = languageBranchRepository;
_siteConfiguration = siteConfiguration;
}
示例4: CartItemViewModelFactory
public CartItemViewModelFactory(
IContentLoader contentLoader,
IPricingService pricingService,
UrlResolver urlResolver,
ICurrentMarket currentMarket,
ICurrencyService currencyService,
IPromotionService promotionService,
AppContextFacade appContext,
ILineItemCalculator lineItemCalculator,
IProductService productService,
IRelationRepository relationRepository,
ICartService cartService)
{
_contentLoader = contentLoader;
_pricingService = pricingService;
_urlResolver = urlResolver;
_currentMarket = currentMarket;
_currencyService = currencyService;
_promotionService = promotionService;
_appContext = appContext;
_lineItemCalculator = lineItemCalculator;
_productService = productService;
_relationRepository = relationRepository;
_cartService = cartService;
}
示例5: FindProductUiSearchProvider
public FindProductUiSearchProvider(LocalizationService localizationService, ICatalogSystem catalogSystem, ReferenceConverter referenceConverter, IContentLoader contentLoader)
{
_catalogSystem = catalogSystem;
_localizationService = localizationService;
_catalogContext = catalogSystem;
_referenceConverter = referenceConverter;
_contentLoader = contentLoader;
}
示例6: ReferencePropertyGetter
public ReferencePropertyGetter(IContentLoader contentLoader,
LocalizationService localizationService,
IContentTypeRepository contentTypeRepository)
{
_contentLoader = contentLoader;
_localizationService = localizationService;
_contentTypeRepository = contentTypeRepository;
}
示例7: FilterOptionViewModelBinder
public FilterOptionViewModelBinder(IContentLoader contentLoader,
LocalizationService localizationService,
PreferredCultureAccessor preferredCulture)
{
_contentLoader = contentLoader;
_localizationService = localizationService;
_preferredCulture = preferredCulture();
}
示例8: EmailService
public EmailService(INotificationSettingsRepository notificationSettingsRepository, IEmailDispatcher emailDispatcher, ICurrentMarket currentMarket, IContentLoader contentLoader, IMarketService marketService)
{
_notificationSettingsRepository = notificationSettingsRepository;
_emailDispatcher = emailDispatcher;
_currentMarket = currentMarket;
_contentLoader = contentLoader;
_marketService = marketService;
}
示例9: FilterOptionFormModelBinder
public FilterOptionFormModelBinder(IContentLoader contentLoader,
LocalizationService localizationService,
Func<CultureInfo> preferredCulture)
{
_contentLoader = contentLoader;
_localizationService = localizationService;
_preferredCulture = preferredCulture();
}
示例10: SyndicationItemFactory
public SyndicationItemFactory(IContentLoader contentLoader, IFeedContentResolver feedContentResolver, IFeedContentFilterer feedFilterer, IFeedDescriptionProvider feedDescriptionProvider, IContentCategoryLoader contentCategoryLoader)
{
ContentLoader = contentLoader;
ContentCategoryLoader = contentCategoryLoader;
FeedContentResolver = feedContentResolver ?? new FeedContentResolver(ContentLoader);
FeedFilterer = feedFilterer ?? new FeedContentFilterer();
FeedDescriptionProvider = feedDescriptionProvider ?? new FeedDescriptionProvider();
}
示例11: PageRatingController
public PageRatingController()
{
_reviewService = ServiceLocator.Current.GetInstance<IReviewService>();
_loader = ServiceLocator.Current.GetInstance<IContentLoader>();
contentAssetHelper = ServiceLocator.Current.GetInstance<ContentAssetHelper>();
_repository = ServiceLocator.Current.GetInstance<IContentRepository>();
_urlResolver = ServiceLocator.Current.GetInstance<UrlResolver>();
//_logger = logger;
}
示例12: NavigationController
public NavigationController(IContentLoader contentLoader, ICartService cartService, ICartService wishListService, UrlHelper urlHelper, LocalizationService localizationService)
{
_contentLoader = contentLoader;
_cartService = cartService;
_wishListService = wishListService;
_urlHelper = urlHelper;
_localizationService = localizationService;
_wishListService.InitializeAsWishList();
}
示例13: CachingUrlResolver
public CachingUrlResolver(RouteCollection routes,
IContentLoader contentLoader,
SiteDefinitionRepository siteDefinitionRepository,
TemplateResolver templateResolver,
IPermanentLinkMapper permanentLinkMapper,
IObjectInstanceCache cache)
: base(routes, contentLoader, siteDefinitionRepository, templateResolver, permanentLinkMapper)
{
_cache = cache;
}
示例14: MailService
public MailService(HttpContextBase httpContextBase,
UrlResolver urlResolver,
IContentLoader contentLoader,
IHtmlDownloader htmlDownloader)
{
_httpContextBase = httpContextBase;
_urlResolver = urlResolver;
_contentLoader = contentLoader;
_htmlDownloader = htmlDownloader;
}
示例15: MarketContentLoader
/// <summary>
/// Initializes a new instance of the <see cref="MarketContentLoader" /> class.
/// </summary>
/// <param name="contentLoader">Service used to load content data.</param>
/// <param name="campaignInfoExtractor">Used to extract informations about campaigns and promotions.</param>
/// <param name="promotionProcessorResolver">The promotion processor resolver.</param>
public MarketContentLoader(
IContentLoader contentLoader,
CampaignInfoExtractor campaignInfoExtractor,
PromotionProcessorResolver promotionProcessorResolver)
{
_contentLoader = contentLoader;
_campaignInfoExtractor = campaignInfoExtractor;
_promotionProcessorResolver = promotionProcessorResolver;
}