예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }