コード例 #1
0
        //private readonly IExtendedPublicationResolver _publicationResolver;

        public DefaultContentProvider(IPageFactory pageFactory,
                                      IComponentPresentationFactory componentPresentationFactory,
                                      IViewModelFactory viewModelFactory,
                                      ILogger logger,
                                      //IExtendedPublicationResolver publicationResolver,
                                      IDD4TConfiguration configuration)
        {
            pageFactory.ThrowIfNull(nameof(pageFactory));
            viewModelFactory.ThrowIfNull(nameof(viewModelFactory));
            logger.ThrowIfNull(nameof(logger));
            componentPresentationFactory.ThrowIfNull(nameof(componentPresentationFactory));
            configuration.ThrowIfNull(nameof(configuration));
            //publicationResolver.ThrowIfNull(nameof(publicationResolver));

            //this._publicationResolver = publicationResolver;
            this._pageFactory                  = pageFactory;
            this._viewModelFactory             = viewModelFactory;
            this._componentPresentationFactory = componentPresentationFactory;
            this._logger        = logger;
            this._configuration = configuration;
        }