Ejemplo n.º 1
0
        /// <inheritdoc />
        public override async Task <IEnumerable <DocumentItemExecution> > Render(IByteCounterStream outputStream, ContextObject context, ScopeData scopeData)
        {
            if (context != null)
            {
                string value = null;
                await context.EnsureValue();

                if (context.Value != null)
                {
                    value = await context.RenderToString();
                }

                outputStream.Write(value);
            }

            return(Children.WithScope(context));
        }