Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Helper"/> class.
 /// </summary>
 /// <param name="contentRepository">The content repository.</param>
 /// <param name="contentSoftLinkRepository">The content soft link repository.</param>
 /// <param name="contentTypeRepository">The content type repository.</param>
 /// <param name="logger">The logger.</param>
 public Helper(IContentRepository contentRepository, IContentSoftLinkRepository contentSoftLinkRepository, IContentTypeRepository contentTypeRepository, ILogger logger)
 {
     this.ContentRepository         = contentRepository;
     this.ContentSoftLinkRepository = contentSoftLinkRepository;
     this.ContentTypeRepository     = contentTypeRepository;
     this.Logger = logger;
 }
Пример #2
0
        public HomePageController()
        {
            _contentRepository        = ServiceLocator.Current.GetInstance <IContentRepository>();
            _contentVersionRepository = ServiceLocator.Current.GetInstance <IContentVersionRepository>();

            _contentSoftLinkRepository = ServiceLocator.Current.GetInstance <IContentSoftLinkRepository>();
        }
Пример #3
0
 public BlockDocumentsProvider(IContentSoftLinkRepository linkRepository, IContentRepository contentRepository, IContentDocumentBuilder <T> contentDocumentBuilder)
 {
     _linkRepository         = linkRepository;
     _contentRepository      = contentRepository;
     _contentDocumentBuilder = contentDocumentBuilder;
 }
Пример #4
0
 public ContentUsageCommand(IContentSoftLinkRepository softLinkRepository, IContentRepository repository)
 {
     _repo          = repository;
     _softLinksRepo = softLinkRepository;
 }