public PublishingPageHeaderTransformator(PublishingPageTransformationInformation publishingPageTransformationInformation, ClientContext sourceClientContext, ClientContext targetClientContext, PublishingPageTransformation publishingPageTransformation, IList <ILogObserver> logObservers = null) { // Register observers if (logObservers != null) { foreach (var observer in logObservers) { base.RegisterObserver(observer); } } this.publishingPageTransformationInformation = publishingPageTransformationInformation; this.publishingPageTransformation = publishingPageTransformation; this.sourceClientContext = sourceClientContext; this.targetClientContext = targetClientContext; this.functionProcessor = new PublishingFunctionProcessor(publishingPageTransformationInformation.SourcePage, sourceClientContext, targetClientContext, this.publishingPageTransformation, publishingPageTransformationInformation as BaseTransformationInformation, base.RegisteredLogObservers); }
public PublishingMetadataTransformator(PublishingPageTransformationInformation publishingPageTransformationInformation, ClientContext sourceClientContext, ClientContext targetClientContext, ClientSidePage page, PageLayout publishingPageLayoutModel, PublishingPageTransformation publishingPageTransformation, IList <ILogObserver> logObservers = null) { // Register observers if (logObservers != null) { foreach (var observer in logObservers) { base.RegisterObserver(observer); } } this.publishingPageTransformationInformation = publishingPageTransformationInformation; this.targetClientContext = targetClientContext; this.page = page; this.pageLayoutMappingModel = publishingPageLayoutModel; this.publishingPageTransformation = publishingPageTransformation; this.functionProcessor = new PublishingFunctionProcessor(publishingPageTransformationInformation.SourcePage, sourceClientContext, targetClientContext, this.publishingPageTransformation, publishingPageTransformationInformation as BaseTransformationInformation, base.RegisteredLogObservers); }