private void ProcessTag(ParsedTag tag, Queue <string> contentTokens, StringBuilder sb) { var profiler = MiniProfiler.Current; using (profiler.Step("Process tag " + tag.TagName)) { var handlers = TagProvider.GetHandlers(); if (handlers.ContainsKey(tag.TagName)) { ITagHandler handler = handlers[tag.TagName]; if (handler != null) { string contentsFlat = string.Empty; foreach (string s in contentTokens) { contentsFlat += s; } using (profiler.Step("Handler Processing: " + tag.TagName)) { handler.Process(sb, this.MTApp, this.ViewBag, this.TagProvider, tag, contentsFlat); } } } } }
private void ProcessTag(ParsedTag tag, Queue <string> contents, StringBuilder sb) { if (Handlers.ContainsKey(tag.TagName)) { ITagHandler handler = Handlers[tag.TagName]; if (handler != null) { string contentsFlat = string.Empty; foreach (string s in contents) { contentsFlat += s; } sb.Append(handler.Process(this.MTApp, Handlers, tag, contentsFlat)); } } }