public async Task RenderAsync(TemplateContext Context)
{
Context.RenderingTemplate = this;
Exception ProducedException = null;
try
{
await this.LocalRenderAsync(Context);
}
catch (FinalizeRenderException)
{
}
catch (Exception Exception)
{
ProducedException = Exception;
}
if (ProducedException != null)
{
await Context.Output.WriteLineAsync(ProducedException.ToString());
//throw (ProducedException);
}
}
#else