private void Deliver() { try { StringBuilder resultContainer = new StringBuilder(); foreach (IDirective directive in this) { resultContainer.Append(directive.Result); } this._Parent.Deliver(RenderStatus.Rendering, resultContainer.ToString()); } catch (Exception ex) { DirectiveCollection.HandleError(ex, this._Parent); } }
private void Render(IDirective directive) { try { // Analysis Calculation DateTime renderBegins = DateTime.Now; directive.Render(); if (directive.Parent != null) { directive.Parent.HasInlineError |= directive.HasInlineError; } this.CreateAnalysisReport(renderBegins, directive); } catch (Exception ex) { DirectiveCollection.HandleError(ex, directive); } }