Example #1
0
 public override void Render(Context context, StringBuilder result)
 {
     context.Stack(() =>
     {
         context["block"] = new BlockDrop(this);
         RenderAll(NodeList, context, result);
     });
 }
Example #2
0
 public override void Render(Context context, TextWriter result)
 {
     BlockRenderState blockState = BlockRenderState.Find(context);
     context.Stack(() =>
     {
         context["block"] = new BlockDrop(this, result);
         RenderAll(GetNodeList(blockState), context, result);
     });
 }
Example #3
0
        public override void Render(Context context, TextWriter result)
        {
            BlockRenderState blockState = BlockRenderState.Find(context);

            context.Stack(() =>
            {
                context["block"] = new BlockDrop(this, result);
                RenderAll(GetNodeList(blockState), context, result);
            });
        }
Example #4
0
        public override void Render(Context context, StreamWriter result)
        {
            _result = result;

            context.Stack(() =>
            {
                context["block"] = new BlockDrop(this);
                RenderAll(NodeList, context, result);
            });
        }
Example #5
0
        public override Task RenderAsync(Context context, TextWriter result)
        {
            BlockRenderState blockState = BlockRenderState.Find(context);

            return(context.Stack(() =>
            {
                context["block"] = new BlockDrop(this, result);
                return RenderAllAsync(GetNodeList(blockState), context, result);
            }));
        }
Example #6
0
        public override void Render(Context context, TextWriter result)
        {
            _result = result;

            context.Stack(() =>
            {
                context["block"] = new BlockDrop(this);
                RenderAll(NodeList, context, result);
            });
        }