public ReferencePropertyGetter(IContentLoader contentLoader, LocalizationService localizationService, IContentTypeRepository contentTypeRepository) { _contentLoader = contentLoader; _localizationService = localizationService; _contentTypeRepository = contentTypeRepository; }
public InMemoryPriceDetailService(ReferenceConverter referenceConverter) { this._referenceConverter = referenceConverter; _contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>(); _relationRepository = ServiceLocator.Current.GetInstance<IRelationRepository>(); }
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; }
public TagsScheduledJob() { IsStoppable = true; _contentTypeRepository = ServiceLocator.Current.GetInstance<IContentTypeRepository>(); _tagService = ServiceLocator.Current.GetInstance<ITagService>(); _contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>(); }
// 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; }
public EmailService(INotificationSettingsRepository notificationSettingsRepository, IEmailDispatcher emailDispatcher, ICurrentMarket currentMarket, IContentLoader contentLoader, IMarketService marketService) { _notificationSettingsRepository = notificationSettingsRepository; _emailDispatcher = emailDispatcher; _currentMarket = currentMarket; _contentLoader = contentLoader; _marketService = marketService; }
public FilterOptionFormModelBinder(IContentLoader contentLoader, LocalizationService localizationService, Func<CultureInfo> preferredCulture) { _contentLoader = contentLoader; _localizationService = localizationService; _preferredCulture = preferredCulture(); }
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(); }
public FindProductUiSearchProvider(LocalizationService localizationService, ICatalogSystem catalogSystem, ReferenceConverter referenceConverter, IContentLoader contentLoader) { _catalogSystem = catalogSystem; _localizationService = localizationService; _catalogContext = catalogSystem; _referenceConverter = referenceConverter; _contentLoader = contentLoader; }
public FilterOptionViewModelBinder(IContentLoader contentLoader, LocalizationService localizationService, PreferredCultureAccessor preferredCulture) { _contentLoader = contentLoader; _localizationService = localizationService; _preferredCulture = preferredCulture(); }
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; }
public void Register(string extension, IContentLoader loader) { if (extension == null) throw new ArgumentNullException("extension"); if (loader == null) throw new ArgumentNullException("loader"); loaders[extension] = loader; Tracer.TraceSource.TraceInformation("Registerd ContentLoader '{0}' for '{1}'", loader.GetType().FullName, extension); }
public NavigationController(IContentLoader contentLoader, ICartService cartService, ICartService wishListService, UrlHelper urlHelper, LocalizationService localizationService) { _contentLoader = contentLoader; _cartService = cartService; _wishListService = wishListService; _urlHelper = urlHelper; _localizationService = localizationService; _wishListService.InitializeAsWishList(); }
public LevelScreen(IGameObjectsFactory gameObjectsFactory, IUserInterfaceFactory interfaceFactory, IMathFunctionsFactory functionsFactory, ICamera2D camera2D, IContentLoader contentLoader) { this.contentLoader = contentLoader; this.camera = camera2D; player = new Player(); this.objectsFactory = gameObjectsFactory; scene2d = new Scene2D(gameObjectsFactory, new GameplayFactory(gameObjectsFactory), interfaceFactory); this.functionsFactory = functionsFactory; }
public MailService(HttpContextBase httpContextBase, UrlResolver urlResolver, IContentLoader contentLoader, IHtmlDownloader htmlDownloader) { _httpContextBase = httpContextBase; _urlResolver = urlResolver; _contentLoader = contentLoader; _htmlDownloader = htmlDownloader; }
/// <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; }
public CachingUrlResolver(RouteCollection routes, IContentLoader contentLoader, SiteDefinitionRepository siteDefinitionRepository, TemplateResolver templateResolver, IPermanentLinkMapper permanentLinkMapper, IObjectInstanceCache cache) : base(routes, contentLoader, siteDefinitionRepository, templateResolver, permanentLinkMapper) { _cache = cache; }
public static void RenderMainNavigation(this HtmlHelper html, PageReference rootLink = null, ContentReference contentLink = null, bool includeRoot = true, IContentLoader contentLoader = null) { contentLink = contentLink ?? html.ViewContext.RequestContext.GetContentLink(); rootLink = rootLink ?? ContentReference.StartPage; var writer = html.ViewContext.Writer; // top level writer.WriteLine("<nav class=\"navbar navbar-inverse\">"); writer.WriteLine("<ul class=\"nav navbar-nav\">"); if (includeRoot) { if (rootLink.CompareToIgnoreWorkID(contentLink)) { writer.WriteLine("<li class=\"active\">"); } else { writer.WriteLine("<li>"); } writer.WriteLine(html.PageLink(rootLink).ToHtmlString()); writer.WriteLine("</li>"); } // hämta ut alla barn från start contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>(); var topLevelPages = contentLoader.GetChildren<PageData>(rootLink); topLevelPages = FilterForVisitor.Filter(topLevelPages).OfType<PageData>().Where(x => x.VisibleInMenu); var currentBranch = contentLoader.GetAncestors(contentLink).Select(x => x.ContentLink).ToList(); currentBranch.Add(contentLink); //skriv ut dom foreach (var topLevelPage in topLevelPages) { if (currentBranch.Any(x => x.CompareToIgnoreWorkID(topLevelPage.ContentLink))) { writer.WriteLine("<li class=\"active\">"); } else { writer.WriteLine("<li>"); } writer.WriteLine(html.PageLink(topLevelPage).ToHtmlString()); writer.WriteLine("</li>"); } //Close top level writer.WriteLine("</ul"); writer.WriteLine("</nav>"); }
private static string PageUrl(this UrlHelper urlHelper, PageReference pageLink, object routeValues, IContentLoader contentQueryable, IPermanentLinkMapper permanentLinkMapper, LanguageSelectorFactory languageSelectorFactory) { RouteValueDictionary routeValueDictionary = new RouteValueDictionary(routeValues); if (!routeValueDictionary.ContainsKey(RoutingConstants.LanguageKey)) routeValueDictionary[RoutingConstants.LanguageKey] = (object)ContentLanguage.PreferredCulture.Name; if (!routeValueDictionary.ContainsKey(RoutingConstants.ActionKey)) routeValueDictionary[RoutingConstants.ActionKey] = (object)"index"; routeValueDictionary[RoutingConstants.NodeKey] = (object)pageLink; UrlExtensions.SetAdditionalContextValuesForContent(urlHelper, pageLink, routeValueDictionary, contentQueryable, permanentLinkMapper, languageSelectorFactory); return urlHelper.Action(null, routeValueDictionary); }
private static MenuItem CreateMenuItem(PageData page, ContentReference currentContentLink, ContentReference rootLink, IContentLoader contentLoader, Func<IEnumerable<PageData>, IEnumerable<PageData>> filter) { var menuItem = new MenuItem { Page = page, Selected = page.ContentLink.CompareToIgnoreWorkID(currentContentLink), HasChildren = new Lazy<bool>(() => filter(contentLoader.GetChildren<PageData>(page.ContentLink)).Any()), HasSelectedChildPage = new Lazy<bool>(() => HasSelectedChildPage(rootLink, currentContentLink, page)) }; return menuItem; }
public CatalogIndexer() { _priceService = ServiceLocator.Current.GetInstance<IPriceService>(); _contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>(); _promotionService = ServiceLocator.Current.GetInstance<IPromotionService>(); _referenceConverter = ServiceLocator.Current.GetInstance<ReferenceConverter>(); _assetUrlResolver = ServiceLocator.Current.GetInstance<AssetUrlResolver>(); _relationRepository = ServiceLocator.Current.GetInstance<IRelationRepository>(); _appContext = ServiceLocator.Current.GetInstance<AppContextFacade>(); _log = LogManager.GetLogger(typeof(CatalogIndexer)); }
private static MenuItem CreateMenuItem(PageData page, ContentReference currentContentLink, List<ContentReference> pagePath, IContentLoader contentLoader, Func<IEnumerable<PageData>, IEnumerable<PageData>> filter) { var menuItem = new MenuItem(page) { Selected = page.ContentLink.CompareToIgnoreWorkID(currentContentLink) || pagePath.Contains(page.ContentLink), HasChildren = new Lazy<bool>(() => filter(contentLoader.GetChildren<PageData>(page.ContentLink)).Any()) }; return menuItem; }
public FacetPartialRoute(Func<ContentReference> routeStartingPoint, CatalogContentBase commerceRoot, bool supportSeoUri, IContentLoader contentLoader, IRoutingSegmentLoader routingSegmentLoader, IContentVersionRepository contentVersionRepository, IUrlSegmentRouter urlSegmentRouter, IContentLanguageSettingsHandler contentLanguageSettingsHandler, FacetUrlService facetUrlCreator) : base( routeStartingPoint, commerceRoot, supportSeoUri, contentLoader, routingSegmentLoader, contentVersionRepository, urlSegmentRouter, contentLanguageSettingsHandler) { _facetUrlCreator = facetUrlCreator; }
public CartController(IContentLoader contentLoader, ICartService cartService, ICartService wishListService, IProductService productService) { _contentLoader = contentLoader; _cartService = cartService; _wishListService = wishListService; _productService = productService; _wishListService.InitializeAsWishList(); }
public PageTreeStrategy( IContentLoader contentLoader, IFilterAccessWrapper filterAccessWrapper, IHostBindingsService hostBindingsService) { if (contentLoader == null) throw new ArgumentNullException("contentLoader"); if (filterAccessWrapper == null) throw new ArgumentNullException("filterAccessWrapper"); if (hostBindingsService == null) throw new ArgumentNullException("hostBindingsService"); _contentLoader = contentLoader; _filterAccessWrapper = filterAccessWrapper; _hostBindingsService = hostBindingsService; }
protected TiledGame() { loader = new ModuleLoader(); loader.Load(); this.stateManager = loader.GetStateManager(); this.spriteDrawer = loader.GetDrawer(); this.spriteFontDawer = loader.GetFontDrawer(); this.inputManager = loader.GetInputManager(); this.virtualScreen = loader.GetVirtualScreen(); this.camera = loader.GetCamera(); this.contentLoader = loader.GetContentLoader(); }
public CartViewModelFactory( IContentLoader contentLoader, ICurrencyService currencyService, IOrderGroupTotalsCalculator orderGroupTotalsCalculator, IOrderGroupCalculator orderGroupCalculator, ShipmentViewModelFactory shipmentViewModelFactory) { _contentLoader = contentLoader; _currencyService = currencyService; _orderGroupTotalsCalculator = orderGroupTotalsCalculator; _orderGroupCalculator = orderGroupCalculator; _shipmentViewModelFactory = shipmentViewModelFactory; }
public PromotionEntryService( ILinksRepository linksRepository, ICatalogSystem catalogSystem, IContentLoader contentLoader, IWarehouseInventoryService inventoryService, IWarehouseRepository warehouseRepository) { _contentLoader = contentLoader; _linksRepository = linksRepository; _catalogSystem = catalogSystem; _inventoryService = inventoryService; _warehouseRepository = warehouseRepository; }
public NavigationController( IContentLoader contentLoader, ICartService cartService, UrlHelper urlHelper, LocalizationService localizationService, CartViewModelFactory cartViewModelFactory) { _contentLoader = contentLoader; _cartService = cartService; _urlHelper = urlHelper; _localizationService = localizationService; _cartViewModelFactory = cartViewModelFactory; }
public CartService(Func<string, CartHelper> cartHelper, IContentLoader contentLoader, ReferenceConverter referenceConverter, UrlResolver urlResolver, IProductService productService, IPricingService pricingService) { _cartHelper = cartHelper; _contentLoader = contentLoader; _referenceConverter = referenceConverter; _preferredCulture = ContentLanguage.PreferredCulture; _urlResolver = urlResolver; _productService = productService; _pricingService = pricingService; }
public PageViewContextFactory(IContentLoader contentLoader, UrlResolver urlResolver) { _contentLoader = contentLoader; _urlResolver = urlResolver; }
public PageViewContextFactory(IContentLoader contentLoader, UrlResolver urlResolver, IDatabaseMode databaseMode) { _contentLoader = contentLoader; _urlResolver = urlResolver; _databaseMode = databaseMode; }
public PageListBlockController(ContentLocator contentLocator, IContentLoader contentLoader) { this.contentLocator = contentLocator; this.contentLoader = contentLoader; }
public FacetConfigFactory(IContentLoader contentLoader) { _contentLoader = contentLoader; }
public XhtmlStringExtractor(IContentLoader contentLoader) { _contentLoader = contentLoader; }
public MainOptionsMenu(IContentChest contentChest, IViewPortManager viewManager, IUserInterface userInterface, IContentLoader <AsepriteSpriteMap> spriteMapLoader) { _contentChest = contentChest; _viewPortManager = viewManager; _userInterface = userInterface; _spriteMapLoader = spriteMapLoader; }
public ContactUsPageController(IContentLoader icontentLoader) { _icontentLoader = icontentLoader; }
private static MenuItem CreateMenuItem(PageData page, ContentReference currentContentLink, List <ContentReference> pagePath, IContentLoader contentLoader, Func <IEnumerable <PageData>, IEnumerable <PageData> > filter) { var menuItem = new MenuItem(page) { Selected = page.ContentLink.CompareToIgnoreWorkID(currentContentLink) || pagePath.Contains(page.ContentLink), HasChildren = new Lazy <bool>(() => filter(contentLoader.GetChildren <PageData>(page.ContentLink)).Any()) }; return(menuItem); }
public ContentLocator(IContentLoader contentLoader, IContentProviderManager providerManager, IPageCriteriaQueryService pageCriteriaQueryService) { _contentLoader = contentLoader; _providerManager = providerManager; _pageCriteriaQueryService = pageCriteriaQueryService; }
public SearchService(SearchHandler searchHandler, IContentLoader contentLoader) { _searchHandler = searchHandler; _contentLoader = contentLoader; }
public ContactBlockController(IContentLoader contentLoader, IPermanentLinkMapper permanentLinkMapper) { _contentLoader = contentLoader; _permanentLinkMapper = permanentLinkMapper; }
public override void LoadContent(IContentLoader contentLoader) { Texture = contentLoader.LoadTexture("Windows/windowBattleFrame"); }
public PreviewController(IContentLoader contentLoader, TemplateResolver templateResolver, DisplayOptions displayOptions) { _contentLoader = contentLoader; _templateResolver = templateResolver; _displayOptions = displayOptions; }
public SingleUseCouponController(IContentLoader contentLoader, UniqueCouponService couponService) { _contentLoader = contentLoader; _couponService = couponService; }
public ListingBlockController(IContentLoader loader) { this.loader = loader; }
public NganLuongPaymentController(IOrderRepository orderRepository, IContentLoader contentLoader, UrlResolver urlResolver) { _orderRepository = orderRepository; _contentLoader = contentLoader; _urlResolver = urlResolver; }
public StoryHelper(IContentLoader contentLoader, IManagedQuestApi questApi) { this.contentLoader = contentLoader; this.questApi = questApi; }
public ChildrenPropertyGetter(IContentLoader contentLoader) : base(contentLoader) { }
public TagCloudBlockController(ContentLocator contentLocator, IContentLoader contentLoader) { this.contentLocator = contentLocator; this.contentLoader = contentLoader; }
public ElasticIndexerController(IContentLoader contentLoader, IIndexer indexer, IElasticSearchSettings settings) { _contentLoader = contentLoader; _indexer = indexer; _settings = settings; }
public ProductHandle(IRelationRepository relationRepository, IContentLoader contentLoader, ICustomerPriceService customerPriceService) { _relationRepository = relationRepository; _contentLoader = contentLoader; _customerPriceService = customerPriceService; }
public ProductHeroBlockController(IContentLoader contentLoader, UrlResolver urlResolver) { _contentLoader = contentLoader; _urlResolver = urlResolver; }
public ResetPasswordController(ApplicationSignInManager signinManager, ApplicationUserManager userManager, UserService userService, IContentLoader contentLoader, IMailService mailService) : base(signinManager, userManager, userService) { _contentLoader = contentLoader; _mailService = mailService; }
public static IEnumerable <PageData> GetSiblings(this PageData pageData, IContentLoader contentLoader) { var filter = new FilterContentForVisitor(); return(contentLoader.GetChildren <PageData>(pageData.ParentLink).Where(page => !filter.ShouldFilter(page))); }
public CalendarBlockComponent(IContentLoader contentLoader) { _contentLoader = contentLoader; }
public EventRunner(IContentLoader contentLoader) { this.contentLoader = contentLoader; }
public ElasticBestBetsCommerceController(IContentLoader contentLoader, IBestBetsRepository bestBetsRepository, ILanguageBranchRepository languageBranchRepository, IElasticSearchSettings settings, IServerInfoService serverInfoService, IHttpClientHelper httpClientHelper, ReferenceConverter referenceConverter) : base(contentLoader, bestBetsRepository, languageBranchRepository, settings, serverInfoService, httpClientHelper) { _settings = settings; _referenceConverter = referenceConverter; }
public OrderDetailsController(IAddressBookService addressBookService, IOrdersService ordersService, ICustomerService customerService, IOrderRepository orderRepository, IContentLoader contentLoader, ICartService cartService, IPurchaseOrderFactory purchaseOrderFactory) { _addressBookService = addressBookService; _ordersService = ordersService; _customerService = customerService; _orderRepository = orderRepository; _contentLoader = contentLoader; _cartService = cartService; _purchaseOrderFactory = purchaseOrderFactory; }
protected QueryComposer(IContentLoader contentLoader, IClient client) { this.ContentLoader = contentLoader; this.Client = client; }
static ImageReferenceExtensions() { _logger = LogManager.GetLogger(typeof(ImageReferenceExtensions)); _contentLoader = ServiceLocator.Current.GetInstance <IContentLoader>(); _urlHelper = ServiceLocator.Current.GetInstance <UrlHelper>(); }