public PageEditController(IContentLoader contentLoader,
                           IExternalReviewLinksRepository externalReviewLinksRepository,
                           IApprovalReviewsRepository approvalReviewsRepository,
                           ExternalReviewOptions externalReviewOptions, IObjectSerializerFactory serializerFactory,
                           UrlResolver urlResolver, PropertyResolver propertyResolver)
 {
     _contentLoader = contentLoader;
     _externalReviewLinksRepository = externalReviewLinksRepository;
     _approvalReviewsRepository     = approvalReviewsRepository;
     _externalReviewOptions         = externalReviewOptions;
     _serializerFactory             = serializerFactory;
     _urlResolver      = urlResolver;
     _propertyResolver = propertyResolver;
 }
Ejemplo n.º 2
0
        public PageEditController(IContentLoader contentLoader,
                                  IExternalReviewLinksRepository externalReviewLinksRepository,
                                  IApprovalReviewsRepository approvalReviewsRepository,
                                  ExternalReviewOptions externalReviewOptions, IObjectSerializerFactory serializerFactory,
                                  StartPageUrlResolver startPageUrlResolver, PropertyResolver propertyResolver)
        {
            _contentLoader = contentLoader;
            _externalReviewLinksRepository = externalReviewLinksRepository;
            _approvalReviewsRepository     = approvalReviewsRepository;
            _externalReviewOptions         = externalReviewOptions;
            _serializerFactory             = serializerFactory;
            _startPageUrlResolver          = startPageUrlResolver;
            _propertyResolver = propertyResolver;

            approvalReviewsRepository.OnBeforeUpdate += ApprovalReviewsRepository_OnBeforeUpdate;
        }