コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LcboInventoryServiceAgent"/> class.
 /// </summary>
 /// <param name="pageRetrieverFactory">The page retriever factory.</param>
 public LcboInventoryServiceAgent(
     [ServiceDependency]IPageRetrieverFactory pageRetrieverFactory
     )
 {
     this.pageRetriever = pageRetrieverFactory.InventoryPageRetriever;
     this.logWriter = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>();
     this.traceManager = new TraceManager(this.logWriter);
 }
コード例 #2
0
 public LcboProductServiceAgent(
     [ServiceDependency]IPageRetrieverFactory pageRetrieverFactory
     )
 {
     this.productDetailsPageRetriever = pageRetrieverFactory.ProductDetailsPageRetriever;
     this.productListPageRetriever = pageRetrieverFactory.ProductListPageRetriever;
     this.logWriter = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>();
     this.traceManager = new TraceManager(this.logWriter);
 }
コード例 #3
0
 //private readonly IGeoLocationServiceAgent geolocationService;
 /// <summary>
 /// Initializes a new instance of the LcboStoresServiceAgent class.
 /// </summary>
 public LcboStoresServiceAgent(
     [ServiceDependency]IPageRetrieverFactory pageRetrieverFactory
     //,
     //[ServiceDependency]IGeoLocationServiceAgent geolocationService
     )
 {
     this.storeDetailsPageRetriever = pageRetrieverFactory.StoreDetailsPageRetriever;
     this.storeListPageRetriever = pageRetrieverFactory.StoreListPageRetriever;
     this.logWriter = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>();
     this.traceManager = new TraceManager(this.logWriter);
     //this.geolocationService = geolocationService;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SocialLinkRepository"/> class that returns links.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public SocialLinkRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NavigationRepository"/> class.
 /// </summary>
 /// <param name="pageRetriever">The page retriever.</param>
 /// <param name="repositoryCacheHelper">Handles caching of retrieved objects.</param>
 public NavigationRepository(IPageRetriever pageRetriever, RepositoryCacheHelper repositoryCacheHelper)
 {
     this.pageRetriever         = pageRetriever;
     this.repositoryCacheHelper = repositoryCacheHelper;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ManufacturerRepository"/> class that returns manufacturers.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public ManufacturerRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CafeRepository"/> class that returns cafes.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public CafeRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KenticoHomeRepository"/> class that returns home page sections.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public KenticoHomeRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }
コード例 #9
0
 // Gets instances of required services using dependency injection
 public PageTemplateCustomRoutingInitialization(IPageRetriever pagesRetriever)
 {
     this.pagesRetriever = pagesRetriever;
 }
コード例 #10
0
 // Gets instances of required services using dependency injection
 public PageBuilderInitializationExample(IPageRetriever pageRetriever,
                                         IPageDataContextInitializer pageDataContextInitializer)
 {
     this.pageRetriever = pageRetriever;
     this.pageDataContextInitializer = pageDataContextInitializer;
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KenticoArticleRepository"/> class that returns articles.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 /// <param name="pageDataContextRetriever">Retriever for page data context.</param>
 public KenticoArticleRepository(IPageRetriever pageRetriever, IPageDataContextRetriever pageDataContextRetriever)
 {
     this.pageRetriever            = pageRetriever;
     this.pageDataContextRetriever = pageDataContextRetriever;
 }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KenticoProductRepository"/> class that returns products.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 /// <param name="skuInfoProvider">Provider for <see cref="SKUInfo"/> management.</param>
 public KenticoProductRepository(IPageRetriever pageRetriever, ISKUInfoProvider skuInfoProvider)
 {
     this.pageRetriever   = pageRetriever;
     this.skuInfoProvider = skuInfoProvider;
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KenticoReferenceRepository"/> class.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public KenticoReferenceRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }
コード例 #14
0
 // Gets instances of required services using dependency injection
 public PageDataContextInitialization(IPageRetriever pageRetriever,
                                      IPageDataContextInitializer pageDataContextInitializer)
 {
     this.pageRetriever = pageRetriever;
     this.pageDataContextInitializer = pageDataContextInitializer;
 }
コード例 #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactRepository"/> class that returns contact information.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public ContactRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }
コード例 #16
0
 /// <summary>
 /// DI Constructor
 /// </summary>
 /// <param name="pageRetriever">PageRetriever instance</param>
 public ListRetrievalWorker(IPageRetriever pageRetriever)
 {
     _pageRetriever = pageRetriever;
 }
コード例 #17
0
 public ShareableContentWidgetViewComponent(IPageRetriever pageRetriever, IProgressiveCache progressiveCache)
 {
     PageRetriever    = pageRetriever;
     ProgressiveCache = progressiveCache;
 }
コード例 #18
0
ファイル: SeasonWorker.cs プロジェクト: forki/NeuroLinker
 /// <summary>
 /// DI Constructor
 /// </summary>
 /// <param name="pageRetriever">PageRetriever instance</param>
 public SeasonWorker(IPageRetriever pageRetriever)
 {
     _pageRetriever = pageRetriever;
 }
コード例 #19
0
 public PageSelectorExample(IPageRetriever pagesRetriever, IComponentPropertiesRetriever componentPropertiesRetriever)
 {
     this.pagesRetriever = pagesRetriever;
     this.componentPropertiesRetriever = componentPropertiesRetriever;
 }
コード例 #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductRepository"/> class that returns products.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 /// <param name="skuInfoProvider">Provider for <see cref="SKUInfo"/> management.</param>
 /// <param name="repositoryCacheHelper">Handles caching of retrieved objects.</param>
 public ProductRepository(IPageRetriever pageRetriever, ISKUInfoProvider skuInfoProvider, RepositoryCacheHelper repositoryCacheHelper)
 {
     this.pageRetriever         = pageRetriever;
     this.skuInfoProvider       = skuInfoProvider;
     this.repositoryCacheHelper = repositoryCacheHelper;
 }
コード例 #21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KenticoBrewerRepository"/> class that returns brewers.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public KenticoBrewerRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }
コード例 #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KenticoNavigationRepository"/> class that returns navigation items.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public KenticoNavigationRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }
コード例 #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotTipsRepository"/> class that returns hot tips.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 /// <param name="repositoryCacheHelper">Handles caching of retrieved objects.</param>
 public HotTipsRepository(IPageRetriever pageRetriever, RepositoryCacheHelper repositoryCacheHelper)
 {
     this.pageRetriever         = pageRetriever;
     this.repositoryCacheHelper = repositoryCacheHelper;
 }
コード例 #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AboutUsRepository"/> class that returns stories about company's strategy, history and philosophy.
 /// </summary>
 /// <param name="pageRetriever">Retriever for pages based on given parameters.</param>
 public AboutUsRepository(IPageRetriever pageRetriever)
 {
     this.pageRetriever = pageRetriever;
 }