public void WriteComposedFragments(FragmentRenderMode renderMode, ComposedHtmlWriter htmlWriter)
        {
            var page = new CompositedResponse();

            Render(_pageDefinition.RootElement, new RenderAttributes {
                Mode = renderMode
            }, htmlWriter);
        }
Esempio n. 2
0
        public RenderingFragmentCollection Execute(Page.Elements.PageComposition pageRendering, FragmentRenderMode renderMode)
        {
            var transformationResult = new RenderingFragmentCollection();

            var cached = new CachedContentFragmentRenderer().Execute(pageRendering.RootElement);

            transformationResult.Add(cached);

            foreach (var engine in _engines)
            {
                var localBatch = engine.Execute(pageRendering.RootElement);
                transformationResult.Add(localBatch);
            }

            return(transformationResult);
        }