public BusinessDependencies(ISiteContextService siteContextService, ICompanyRepository companyRepository, ISocialLinkRepository socialLinkRepository, ICultureService cultureService, IMenuRepository menuRepository) { SiteContextService = siteContextService; CompanyRepository = companyRepository; SocialLinkRepository = socialLinkRepository; CultureService = cultureService; MenuRepository = menuRepository; }
public BusinessDependencies( ICultureService cultureService, ISiteContextService siteContextService, //ICacheService cacheDependencyService, IErrorHelperService errorHelperService, ILocalizationService localizationService ) { CultureService = cultureService; SiteContextService = siteContextService; //CacheService = cacheDependencyService; ErrorHelperService = errorHelperService; LocalizationService = localizationService; }
public BusinessDependencies( IMenuRepository menuRepository, ICompanyRepository companyRepository, ICultureRepository cultureRepository, ISiteContextService siteContextService, ISocialLinkRepository socialLinkRepository, ICacheService cacheDependencyService ) { MenuRepository = menuRepository; CompanyRepository = companyRepository; CultureRepository = cultureRepository; SiteContextService = siteContextService; SocialLinkRepository = socialLinkRepository; CacheService = cacheDependencyService; }
public RepositoryServices( ISiteService siteService, ISiteContextService siteContextService, IPageRetriever pageRetriever, IPageUrlRetriever pageUrlRetriever, IPageAttachmentUrlRetriever pageAttachmentUrlRetriever, ISiteCultureRepository siteCultureRepository, IProgressiveCache progressiveCache) { SiteService = siteService ?? throw new ArgumentNullException(nameof(siteService)); SiteContextService = siteContextService ?? throw new ArgumentNullException(nameof(siteContextService)); PageRetriever = pageRetriever ?? throw new ArgumentNullException(nameof(pageRetriever)); PageUrlRetriever = pageUrlRetriever ?? throw new ArgumentNullException(nameof(pageUrlRetriever)); PageAttachmentUrlRetriever = pageAttachmentUrlRetriever ?? throw new ArgumentNullException(nameof(pageAttachmentUrlRetriever)); SiteCultureRepository = siteCultureRepository ?? throw new ArgumentNullException(nameof(siteCultureRepository)); ProgressiveCache = progressiveCache ?? throw new ArgumentNullException(nameof(progressiveCache)); }
public RetrievePageService( ICatalogPathBuilder catalogPathBuilder, ICatalogService catalogService, INavigationFilterService navigationFilterService, IContentModeProvider contentModeProvider, ISiteContextServiceFactory siteContextServiceFactory, Lazy <ICatalogPathFinder> catalogPathFinder, IRulesEngine rulesEngine, IHtmlRedirectPipeline htmlRedirectPipeline) { this.catalogPathBuilder = catalogPathBuilder; this.catalogService = catalogService; this.navigationFilterService = navigationFilterService; this.contentModeProvider = contentModeProvider; this.siteContextService = siteContextServiceFactory.GetSiteContextService(); this.catalogPathFinder = catalogPathFinder; this.rulesEngine = rulesEngine; this.htmlRedirectPipeline = htmlRedirectPipeline; }
public BusinessDependencies( IMenuRepository menuRepository, ICompanyRepository companyRepository, ICultureService cultureService, ISiteContextService siteContextService, ISocialLinkRepository socialLinkRepository, ICacheService cacheDependencyService, IErrorHelperService errorHelperService, ILocalizationService localizationService ) { MenuRepository = menuRepository; CompanyRepository = companyRepository; CultureService = cultureService; SiteContextService = siteContextService; SocialLinkRepository = socialLinkRepository; CacheService = cacheDependencyService; ErrorHelperService = errorHelperService; LocalizationService = localizationService; }
public DoctorRepository(IDocumentQueryService documentQueryService, ISiteContextService siteContextService) : base(documentQueryService) { SiteContextService = siteContextService; }
// Injects a service which holds the site name and current culture code name public CacheService(ISiteContextService siteContextService) { SiteContextService = siteContextService; }
public DocumentQueryService(ISiteContextService siteContext) { SiteContext = siteContext; }
public CultureService(ISiteContextService siteContextService) { SiteContextService = siteContextService; }
// Injects a service which holds the site name and current culture code name public CacheService(ISiteContextService siteContextService, IHttpContextAccessor httpContextAccessor) { _httpContextAccessor = httpContextAccessor; SiteContextService = siteContextService; }
public DoctorRepository(IMapper mapper, IDocumentQueryService documentQueryService, ISiteContextService siteContextService) : base(mapper, documentQueryService) { _siteContextService = siteContextService; }
public SitecoreCacheDecorator(ICacheProvider provider, ISitecoreService database, ISiteContextService siteService) { if (provider == null) { throw new ArgumentNullException(nameof(provider), "A valid ICacheProvider instance must be provided."); } if (database == null) { throw new ArgumentNullException(nameof(database), "A valid ISitecoreService instance must be provided."); } if (siteService == null) { throw new ArgumentNullException(nameof(siteService)); } Provider = provider; DatabaseName = database.Database.Name; SiteName = siteService.CurrentSiteName; LanguageName = siteService.LanguageName; ShouldPassThrough = DatabaseName.ToLowerInvariant() == IgnoreDatabaseName; }
public CultureRepository(ISiteContextService siteContextService) { SiteContextService = siteContextService; }
public CrossSiteCacheProvider(Jabberwocky.Core.Caching.ICacheProvider provider, ISitecoreService database, ISiteContextService siteService) : base(provider, database, siteService) { }
/// <summary> /// Creates a new instance of the class with required dependencies. /// </summary> /// <param name="siteContextService">Service that mainly provides the current site name and ID.</param> /// <param name="kenticoUserStore">The <see cref="Kentico.Membership.UserStore"/> wrapped in <see cref="IKenticoUserStore"/>.</param> /// <exception cref="ArgumentNullException">Thrown when <paramref name="siteContextService"/> is <see langword="null"/>.</exception> /// <exception cref="ArgumentNullException">Thrown when <paramref name="kenticoUserStore"/> is <see langword="null"/>.</exception> public MedioClinicUserStore(ISiteContextService siteContextService, IKenticoUserStore kenticoUserStore) { SiteContextService = siteContextService ?? throw new ArgumentNullException(nameof(siteContextService)); KenticoUserStore = kenticoUserStore ?? throw new ArgumentNullException(nameof(kenticoUserStore)); }