CSharpUtils.Templates.Runtime.TemplateCode.RenderAsync C# (CSharp) Метод

RenderAsync() публичный Метод

public RenderAsync ( TemplateContext Context ) : System.Threading.Tasks.Task
Context TemplateContext
Результат System.Threading.Tasks.Task
		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