Пример #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="pipeline">The context Model Builder Pipeline.</param>
        protected DataModelBuilder(DataModelBuilderPipeline pipeline)
        {
            Pipeline = pipeline;

            if (pipeline.Logger is TemplatingLoggerAdapter)
            {
                // If the pipeline uses a TemplatingLogger (default), we also use our own.
                Logger = new TemplatingLoggerAdapter(TemplatingLogger.GetLogger(GetType()));
            }
            else
            {
                // If the pipeline uses another logger (unit/integration tests), we use that one.
                Logger = pipeline.Logger;
            }
        }
Пример #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pipeline">The context <see cref="DataModelBuilderPipeline"/></param>
 public DefaultPageMetaModelBuilder(DataModelBuilderPipeline pipeline) : base(pipeline)
 {
 }
 public AddTargetGroupsModelBuilder(DataModelBuilderPipeline pipeline) : base(pipeline)
 {
     Logger.Debug("AddTargetGroupsModelBuilder initialized.");
 }
Пример #4
0
 public InheritMetadataPageModelBuilder(DataModelBuilderPipeline pipeline) : base(pipeline)
 {
     Logger.Debug("InheritMetadataPageModelBuilder initialized.");
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pipeline">The context Model Builder Pipeline.</param>
 public ContextExpressionsModelBuilder(DataModelBuilderPipeline pipeline) : base(pipeline)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pipeline">The context Model Builder Pipeline.</param>
 internal ExternalContentLibrary(DataModelBuilderPipeline pipeline)
 {
     _pipeline   = pipeline;
     _eclSession = SessionFactory.CreateEclSession(pipeline.Session);
 }
Пример #7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pipeline">The context <see cref="DataModelBuilderPipeline"/></param>
 public EclModelBuilder(DataModelBuilderPipeline pipeline) : base(pipeline)
 {
 }