#pragma warning disable 1998 public override async Task ExecuteAsync() { #line 1 "MarkupInCodeBlock.cshtml" for (int i = 1; i <= 10; i++) { #line default #line hidden Instrumentation.BeginContext(40, 27, true); WriteLiteral(" <p>Hello from C#, #"); Instrumentation.EndContext(); Instrumentation.BeginContext(69, 12, false); #line 3 "MarkupInCodeBlock.cshtml" Write(i.ToString()); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(82, 6, true); WriteLiteral("</p>\r\n"); Instrumentation.EndContext(); #line 4 "MarkupInCodeBlock.cshtml" } #line default #line hidden Instrumentation.BeginContext(96, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new TagHelperRunner(); Instrumentation.BeginContext(33, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", TagMode.StartTagAndEndTag, "test", async() => { Instrumentation.BeginContext(73, 11, true); WriteLiteral("Body of Tag"); Instrumentation.EndContext(); } , StartTagHelperWritingScope, EndTagHelperWritingScope); __PTagHelper = CreateTagHelper <PTagHelper>(); __tagHelperExecutionContext.Add(__PTagHelper); __tagHelperExecutionContext.AddHtmlAttribute("class", Html.Raw("Hello World")); #line 4 "SingleTagHelperWithNewlineBeforeAttributes.cshtml" __PTagHelper.Age = 1337; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("age", __PTagHelper.Age); __tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); Instrumentation.BeginContext(35, 53, false); await WriteTagHelperAsync(__tagHelperExecutionContext); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(68, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); Instrumentation.BeginContext(166, 30, true); WriteLiteral("\r\n<p>Path\'s full type name is "); Instrumentation.EndContext(); Instrumentation.BeginContext(197, 21, false); #line 9 "Imports.cshtml" Write(typeof(Path).FullName); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(218, 40, true); WriteLiteral("</p>\r\n<p>Foo\'s actual full type name is "); Instrumentation.EndContext(); Instrumentation.BeginContext(259, 20, false); #line 10 "Imports.cshtml" Write(typeof(Foo).FullName); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(279, 4, true); WriteLiteral("</p>"); Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new global::Microsoft.AspNetCore.Razor.Runtime.TagHelperRunner(); __tagHelperScopeManager = __tagHelperScopeManager ?? new global::Microsoft.AspNetCore.Razor.Runtime.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); Instrumentation.BeginContext(31, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { Instrumentation.BeginContext(71, 11, true); WriteLiteral("Body of Tag"); Instrumentation.EndContext(); } ); __TestNamespace_PTagHelper = CreateTagHelper <global::TestNamespace.PTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); #line 4 "SingleTagHelperWithNewlineBeforeAttributes.cshtml" __TestNamespace_PTagHelper.Age = 1337; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Instrumentation.BeginContext(33, 53, false); Write(__tagHelperExecutionContext.Output); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new global::Microsoft.AspNetCore.Razor.Runtime.TagHelperRunner(); __tagHelperScopeManager = __tagHelperScopeManager ?? new global::Microsoft.AspNetCore.Razor.Runtime.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); Instrumentation.BeginContext(31, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { } ); __TestNamespace_InputTagHelper = CreateTagHelper <global::TestNamespace.InputTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); __TestNamespace_CatchAllTagHelper = CreateTagHelper <global::TestNamespace.CatchAllTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __TestNamespace_CatchAllTagHelper.Type = __TestNamespace_InputTagHelper.Type; #line 3 "DuplicateTargetTagHelper.cshtml" __TestNamespace_InputTagHelper.Checked = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __TestNamespace_CatchAllTagHelper.Checked = __TestNamespace_InputTagHelper.Checked; await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); Instrumentation.BeginContext(33, 40, false); Write(__tagHelperExecutionContext.Output); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { #line 1 "ImplicitExpression.cshtml" for (int i = 1; i <= 10; i++) { #line default #line hidden Instrumentation.BeginContext(33, 21, true); WriteLiteral(" <p>This is item #"); Instrumentation.EndContext(); Instrumentation.BeginContext(55, 1, false); #line 2 "ImplicitExpression.cshtml" Write(i); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(56, 6, true); WriteLiteral("</p>\r\n"); Instrumentation.EndContext(); #line 3 "ImplicitExpression.cshtml" } #line default #line hidden }
Bold(string s) { #line default #line hidden return(new Template((__razor_helper_writer) => { #line 1 "Helpers.cshtml" s = s.ToUpper(); #line default #line hidden Instrumentation.BeginContext(48, 12, true); WriteLiteralTo(__razor_helper_writer, " <strong>"); Instrumentation.EndContext(); Instrumentation.BeginContext(61, 1, false); #line 3 "Helpers.cshtml" WriteTo(__razor_helper_writer, s); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(62, 11, true); WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); Instrumentation.EndContext(); #line 4 "Helpers.cshtml" #line default #line hidden } )); #line 4 "Helpers.cshtml" }
#pragma warning disable 1998 public override async Task ExecuteAsync() { #line 1 "CodeBlockWithTextElement.cshtml" var a = 1; #line default #line hidden Instrumentation.BeginContext(25, 3, true); WriteLiteral("foo"); Instrumentation.EndContext(); #line 2 "CodeBlockWithTextElement.cshtml" var b = 1; #line default #line hidden Instrumentation.BeginContext(63, 4, true); WriteLiteral("bar "); Instrumentation.EndContext(); Instrumentation.BeginContext(69, 3, false); #line 3 "CodeBlockWithTextElement.cshtml" Write(a + b); #line default #line hidden Instrumentation.EndContext(); #line 3 "CodeBlockWithTextElement.cshtml" #line default #line hidden }
Italic(string s) { #line default #line hidden return(new Template((__razor_helper_writer) => { #line 6 "Helpers.cshtml" s = s.ToUpper(); #line default #line hidden Instrumentation.BeginContext(128, 8, true); WriteLiteralTo(__razor_helper_writer, " <em>"); Instrumentation.EndContext(); Instrumentation.BeginContext(137, 1, false); #line 8 "Helpers.cshtml" WriteTo(__razor_helper_writer, s); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(138, 7, true); WriteLiteralTo(__razor_helper_writer, "</em>\r\n"); Instrumentation.EndContext(); #line 9 "Helpers.cshtml" #line default #line hidden } )); #line 9 "Helpers.cshtml" }
#pragma warning disable 1998 public override async Task ExecuteAsync() { #line 1 "Sections.cshtml" Layout = "_SectionTestLayout.cshtml" #line default #line hidden Instrumentation.BeginContext(47, 33, true); WriteLiteral("\r\n\r\n<div>This is in the Body>\r\n\r\n"); Instrumentation.EndContext(); DefineSection("Section2", async(__razor_template_writer) => { Instrumentation.BeginContext(99, 39, true); WriteLiteralTo(__razor_template_writer, "\r\n <div>This is in Section 2</div>\r\n"); Instrumentation.EndContext(); } ); Instrumentation.BeginContext(141, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); DefineSection("Section1", async(__razor_template_writer) => { Instrumentation.BeginContext(162, 39, true); WriteLiteralTo(__razor_template_writer, "\r\n <div>This is in Section 1</div>\r\n"); Instrumentation.EndContext(); } ); }
Bold(string s) { #line default #line hidden return(new Template((__razor_helper_writer) => { #line 3 "NestedHelpers.cshtml" s = s.ToUpper(); #line default #line hidden Instrumentation.BeginContext(106, 16, true); WriteLiteralTo(__razor_helper_writer, " <strong>"); Instrumentation.EndContext(); Instrumentation.BeginContext(123, 1, false); #line 5 "NestedHelpers.cshtml" WriteTo(__razor_helper_writer, s); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(124, 11, true); WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); Instrumentation.EndContext(); #line 6 "NestedHelpers.cshtml" #line default #line hidden } )); #line 6 "NestedHelpers.cshtml" }
Strong(string s) { #line default #line hidden return(new Template((__razor_helper_writer) => { #line 1 "Instrumented.cshtml" #line default #line hidden Instrumentation.BeginContext(28, 12, true); WriteLiteralTo(__razor_helper_writer, " <strong>"); Instrumentation.EndContext(); Instrumentation.BeginContext(41, 1, false); #line 2 "Instrumented.cshtml" WriteTo(__razor_helper_writer, s); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(42, 11, true); WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); Instrumentation.EndContext(); #line 3 "Instrumented.cshtml" #line default #line hidden } )); #line 3 "Instrumented.cshtml" }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new TagHelperRunner(); Instrumentation.BeginContext(33, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", true, "test", async() => { } , StartTagHelperWritingScope, EndTagHelperWritingScope); __InputTagHelper = CreateTagHelper <InputTagHelper>(); __tagHelperExecutionContext.Add(__InputTagHelper); __InputTagHelper.Type = "checkbox"; __tagHelperExecutionContext.AddTagHelperAttribute("type", __InputTagHelper.Type); #line 3 "DuplicateTargetTagHelper.cshtml" __InputTagHelper.Checked = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __InputTagHelper.Checked); __CatchAllTagHelper = CreateTagHelper <CatchAllTagHelper>(); __tagHelperExecutionContext.Add(__CatchAllTagHelper); __CatchAllTagHelper.Type = __InputTagHelper.Type; __CatchAllTagHelper.Checked = __InputTagHelper.Checked; __tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); await WriteTagHelperAsync(__tagHelperExecutionContext); __tagHelperExecutionContext = __tagHelperScopeManager.End(); }
Link(string link) { #line default #line hidden return(new Template((__razor_helper_writer) => { #line 1 "InlineBlocks.cshtml" #line default #line hidden Instrumentation.BeginContext(29, 6, true); WriteLiteralTo(__razor_helper_writer, " <a"); Instrumentation.EndContext(); WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 35), Tuple.Create("\"", 93), Tuple.Create(Tuple.Create("", 42), Tuple.Create <System.Object, System.Int32>(new Template((__razor_attribute_value_writer) => { #line 2 "InlineBlocks.cshtml" if (link != null) { #line default #line hidden Instrumentation.BeginContext(63, 4, false); #line 2 "InlineBlocks.cshtml" WriteTo(__razor_attribute_value_writer, link); #line default #line hidden Instrumentation.EndContext(); #line 2 "InlineBlocks.cshtml" } else { #line default #line hidden Instrumentation.BeginContext(76, 3, true); WriteLiteralTo(__razor_attribute_value_writer, " # "); Instrumentation.EndContext(); #line 2 "InlineBlocks.cshtml" } #line default #line hidden } ), 42), false)); Instrumentation.BeginContext(94, 5, true); WriteLiteralTo(__razor_helper_writer, " />\r\n"); Instrumentation.EndContext(); #line 3 "InlineBlocks.cshtml" #line default #line hidden } )); #line 3 "InlineBlocks.cshtml" }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(0, 16, true); WriteLiteral("<!-- \" -->\r\n<img"); Instrumentation.EndContext(); WriteAttribute("src", Tuple.Create(" src=\"", 16), Tuple.Create("\"", 41), Tuple.Create(Tuple.Create("", 22), Tuple.Create <System.Object, System.Int32>(Href("~/images/submit.png"), 22), false)); Instrumentation.BeginContext(42, 3, true); WriteLiteral(" />"); Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(27, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("modify"); __ModifyTagHelper = CreateTagHelper <ModifyTagHelper>(); __tagHelperExecutionContext.Add(__ModifyTagHelper); StartWritingScope(); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("none"); __NoneTagHelper = CreateTagHelper <NoneTagHelper>(); __tagHelperExecutionContext.Add(__NoneTagHelper); __tagHelperExecutionContext.Output = __tagHelperRunner.RunAsync(__tagHelperExecutionContext).Result; WriteLiteral(__tagHelperExecutionContext.Output.GenerateStartTag()); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("append"); __AppendTagHelper = CreateTagHelper <AppendTagHelper>(); __tagHelperExecutionContext.Add(__AppendTagHelper); __tagHelperExecutionContext.Output = __tagHelperRunner.RunAsync(__tagHelperExecutionContext).Result; WriteLiteral(__tagHelperExecutionContext.Output.GenerateStartTag()); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("prepend"); __PrependTagHelper = CreateTagHelper <PrependTagHelper>(); __tagHelperExecutionContext.Add(__PrependTagHelper); __tagHelperExecutionContext.Output = __tagHelperRunner.RunAsync(__tagHelperExecutionContext).Result; WriteLiteral(__tagHelperExecutionContext.Output.GenerateStartTag()); WriteLiteral(__tagHelperExecutionContext.Output.GenerateContent()); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("replace"); __ReplaceTagHelper = CreateTagHelper <ReplaceTagHelper>(); __tagHelperExecutionContext.Add(__ReplaceTagHelper); __tagHelperExecutionContext.Output = __tagHelperRunner.RunAsync(__tagHelperExecutionContext).Result; WriteLiteral(__tagHelperExecutionContext.Output.GenerateStartTag()); WriteLiteral(__tagHelperExecutionContext.Output.GenerateContent()); WriteLiteral(__tagHelperExecutionContext.Output.GenerateEndTag()); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); WriteLiteral(__tagHelperExecutionContext.Output.GenerateEndTag()); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); WriteLiteral(__tagHelperExecutionContext.Output.GenerateContent()); WriteLiteral(__tagHelperExecutionContext.Output.GenerateEndTag()); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); WriteLiteral(__tagHelperExecutionContext.Output.GenerateEndTag()); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n"); __tagHelperStringValueBuffer = EndWritingScope(); __tagHelperExecutionContext.Output = __tagHelperRunner.RunAsync(__tagHelperExecutionContext, __tagHelperStringValueBuffer).Result; WriteLiteral(__tagHelperExecutionContext.Output.GenerateStartTag()); WriteLiteral(__tagHelperExecutionContext.Output.GenerateContent()); WriteLiteral(__tagHelperExecutionContext.Output.GenerateEndTag()); __tagHelperExecutionContext = __tagHelperScopeManager.End(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new TagHelperRunner(); Instrumentation.BeginContext(27, 13, true); WriteLiteral("\r\n<div>\r\n "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", true, "test", async() => { } , StartTagHelperWritingScope, EndTagHelperWritingScope); __InputTagHelper = CreateTagHelper <InputTagHelper>(); __tagHelperExecutionContext.Add(__InputTagHelper); __InputTagHelper.Type = ""; __tagHelperExecutionContext.AddTagHelperAttribute("type", __InputTagHelper.Type); __InputTagHelper2 = CreateTagHelper <InputTagHelper2>(); __tagHelperExecutionContext.Add(__InputTagHelper2); __InputTagHelper2.Type = __InputTagHelper.Type; #line 4 "EmptyAttributeTagHelpers.cshtml" __InputTagHelper2.Checked =; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __InputTagHelper2.Checked); __tagHelperExecutionContext.AddHtmlAttribute("class", Html.Raw("")); __tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); await WriteTagHelperAsync(__tagHelperExecutionContext); __tagHelperExecutionContext = __tagHelperScopeManager.End(); Instrumentation.BeginContext(74, 6, true); WriteLiteral("\r\n "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", false, "test", async() => { WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", true, "test", async() => { } , StartTagHelperWritingScope, EndTagHelperWritingScope); __InputTagHelper = CreateTagHelper <InputTagHelper>(); __tagHelperExecutionContext.Add(__InputTagHelper); __InputTagHelper.Type = ""; __tagHelperExecutionContext.AddTagHelperAttribute("type", __InputTagHelper.Type); __InputTagHelper2 = CreateTagHelper <InputTagHelper2>(); __tagHelperExecutionContext.Add(__InputTagHelper2); __InputTagHelper2.Type = __InputTagHelper.Type; #line 6 "EmptyAttributeTagHelpers.cshtml" __InputTagHelper2.Checked =; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __InputTagHelper2.Checked); __tagHelperExecutionContext.AddHtmlAttribute("class", Html.Raw("")); __tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); await WriteTagHelperAsync(__tagHelperExecutionContext); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new TagHelperRunner(); Instrumentation.BeginContext(33, 49, true); WriteLiteral("\r\n<div class=\"randomNonTagHelperAttribute\">\r\n "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", false, "test", async() => { WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", false, "test", async() => { } , StartTagHelperWritingScope, EndTagHelperWritingScope); __PTagHelper = CreateTagHelper <PTagHelper>(); __tagHelperExecutionContext.Add(__PTagHelper); __tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); await WriteTagHelperAsync(__tagHelperExecutionContext); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", true, "test", async() => { } , StartTagHelperWritingScope, EndTagHelperWritingScope); __InputTagHelper = CreateTagHelper <InputTagHelper>(); __tagHelperExecutionContext.Add(__InputTagHelper); __InputTagHelper.Type = **From custom attribute code renderer * *: "text"; __tagHelperExecutionContext.AddTagHelperAttribute("type", __InputTagHelper.Type); __InputTagHelper2 = CreateTagHelper <InputTagHelper2>(); __tagHelperExecutionContext.Add(__InputTagHelper2); __InputTagHelper2.Type = __InputTagHelper.Type; __tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); await WriteTagHelperAsync(__tagHelperExecutionContext); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", true, "test", async() => { } , StartTagHelperWritingScope, EndTagHelperWritingScope); __InputTagHelper = CreateTagHelper <InputTagHelper>(); __tagHelperExecutionContext.Add(__InputTagHelper); __InputTagHelper.Type = **From custom attribute code renderer * *: "checkbox"; __tagHelperExecutionContext.AddTagHelperAttribute("type", __InputTagHelper.Type); __InputTagHelper2 = CreateTagHelper <InputTagHelper2>(); __tagHelperExecutionContext.Add(__InputTagHelper2); __InputTagHelper2.Type = __InputTagHelper.Type; #line 7 "BasicTagHelpers.cshtml" __InputTagHelper2.Checked = **From custom attribute code renderer * *: true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __InputTagHelper2.Checked); __tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); await WriteTagHelperAsync(__tagHelperExecutionContext); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(0, 8, true); WriteLiteral("1 + 1 = "); Instrumentation.EndContext(); Instrumentation.BeginContext(10, 3, false); #line 1 "ExplicitExpression.cshtml" Write(1 + 1); #line default #line hidden Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(168, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); Instrumentation.BeginContext(171, 15, false); #line 10 "NestedHelpers.cshtml" Write(Italic("Hello")); #line default #line hidden Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(76, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); Instrumentation.BeginContext(106, 9, false); #line 7 "HelpersMissingOpenBrace.cshtml" Write(Italic(s)); #line default #line hidden Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(1, 5, false); #line 1 "Inherits.cshtml" Write(foo()); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(6, 4, true); WriteLiteral("\r\n\r\n"); Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(76, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); Instrumentation.BeginContext(95, 13, false); #line 7 "HelpersMissingOpenParen.cshtml" Write(Bold("Hello")); #line default #line hidden Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { DefineSection("Link", async(__razor_section_writer) => { } ); Instrumentation.BeginContext(13, 23, true); WriteLiteral("(string link) {\r\n <a"); Instrumentation.EndContext(); BeginWriteAttribute("href", " href=\"", 36, "\"", 94, 1); WriteAttributeValue("", 43, new Template(async(__razor_attribute_value_writer) => { #line 2 "InlineBlocks.cshtml" if (link != null) { #line default #line hidden Instrumentation.BeginContext(64, 4, false); #line 2 "InlineBlocks.cshtml" WriteTo(__razor_attribute_value_writer, link); #line default #line hidden Instrumentation.EndContext(); #line 2 "InlineBlocks.cshtml" } else { #line default #line hidden Instrumentation.BeginContext(84, 1, true); WriteLiteralTo(__razor_attribute_value_writer, "#"); Instrumentation.EndContext(); #line 2 "InlineBlocks.cshtml" #line default #line hidden #line 2 "InlineBlocks.cshtml" } #line default #line hidden } ), 43, 50, false); EndWriteAttribute(); Instrumentation.BeginContext(95, 6, true); WriteLiteral(" />\r\n}"); Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { DefineSection("Link", async(__razor_template_writer) => { } ); Instrumentation.BeginContext(13, 23, true); WriteLiteral("(string link) {\r\n <a"); Instrumentation.EndContext(); WriteAttribute("href", Tuple.Create(" href=\"", 36), Tuple.Create("\"", 94), Tuple.Create(Tuple.Create("", 43), Tuple.Create <System.Object, System.Int32>(new Template((__razor_attribute_value_writer) => { #line 2 "InlineBlocks.cshtml" if (link != null) { #line default #line hidden Instrumentation.BeginContext(64, 4, false); #line 2 "InlineBlocks.cshtml" WriteTo(__razor_attribute_value_writer, link); #line default #line hidden Instrumentation.EndContext(); #line 2 "InlineBlocks.cshtml" } else { #line default #line hidden Instrumentation.BeginContext(84, 1, true); WriteLiteralTo(__razor_attribute_value_writer, "#"); Instrumentation.EndContext(); #line 2 "InlineBlocks.cshtml" #line default #line hidden #line 2 "InlineBlocks.cshtml" } #line default #line hidden } ), 43), false)); Instrumentation.BeginContext(95, 6, true); WriteLiteral(" />\r\n}"); Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new global::Microsoft.AspNetCore.Razor.Runtime.TagHelperRunner(); __tagHelperScopeManager = __tagHelperScopeManager ?? new global::Microsoft.AspNetCore.Razor.Runtime.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); Instrumentation.BeginContext(25, 72, true); WriteLiteral("\r\n<div class=\"randomNonTagHelperAttribute\">\r\n <p class=\"Hello World\" "); Instrumentation.EndContext(); Instrumentation.BeginContext(100, 12, false); #line 4 "EscapedTagHelpers.cshtml" Write(DateTime.Now); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(112, 69, true); WriteLiteral(">\r\n <input type=\"text\" />\r\n <em>Not a TagHelper: </em> "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { } ); __TestNamespace_InputTagHelper = CreateTagHelper <global::TestNamespace.InputTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); __TestNamespace_InputTagHelper2 = CreateTagHelper <global::TestNamespace.InputTagHelper2>(); __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); BeginWriteTagHelperAttribute(); #line 6 "EscapedTagHelpers.cshtml" WriteLiteral(DateTime.Now); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("type", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; #line 6 "EscapedTagHelpers.cshtml" __TestNamespace_InputTagHelper2.Checked = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); Instrumentation.BeginContext(184, 45, false); Write(__tagHelperExecutionContext.Output); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); Instrumentation.BeginContext(229, 18, true); WriteLiteral("\r\n </p>\r\n</div>"); Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new TagHelperRunner(); Instrumentation.BeginContext(27, 72, true); WriteLiteral("\r\n<div class=\"randomNonTagHelperAttribute\">\r\n <p class=\"Hello World\" "); Instrumentation.EndContext(); Instrumentation.BeginContext(102, 12, false); #line 4 "EscapedTagHelpers.cshtml" Write(DateTime.Now); #line default #line hidden Instrumentation.EndContext(); Instrumentation.BeginContext(114, 69, true); WriteLiteral(">\r\n <input type=\"text\" />\r\n <em>Not a TagHelper: </em> "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", TagMode.SelfClosing, "test", async() => { } , StartTagHelperWritingScope, EndTagHelperWritingScope); __InputTagHelper = CreateTagHelper <InputTagHelper>(); __tagHelperExecutionContext.Add(__InputTagHelper); __InputTagHelper2 = CreateTagHelper <InputTagHelper2>(); __tagHelperExecutionContext.Add(__InputTagHelper2); StartTagHelperWritingScope(); #line 6 "EscapedTagHelpers.cshtml" WriteLiteral(DateTime.Now); #line default #line hidden __tagHelperStringValueBuffer = EndTagHelperWritingScope(); __InputTagHelper.Type = __tagHelperStringValueBuffer.ToString(); __tagHelperExecutionContext.AddTagHelperAttribute("type", __InputTagHelper.Type); __InputTagHelper2.Type = __InputTagHelper.Type; #line 6 "EscapedTagHelpers.cshtml" __InputTagHelper2.Checked = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __InputTagHelper2.Checked); __tagHelperExecutionContext.Output = await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); Instrumentation.BeginContext(186, 45, false); await WriteTagHelperAsync(__tagHelperExecutionContext); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); Instrumentation.BeginContext(231, 18, true); WriteLiteral("\r\n </p>\r\n</div>"); Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(19, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); Instrumentation.BeginContext(140, 26, true); WriteLiteral("\r\nHere\'s a random number: "); Instrumentation.EndContext(); Instrumentation.BeginContext(167, 11, false); #line 12 "FunctionsBlock.cshtml" Write(RandomInt()); #line default #line hidden Instrumentation.EndContext(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { Instrumentation.BeginContext(27, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p"); __PTagHelper = CreateTagHelper <PTagHelper>(); __tagHelperExecutionContext.Add(__PTagHelper); __PTagHelper.Foo = 1337; __tagHelperExecutionContext.AddTagHelperAttribute("foo", __PTagHelper.Foo); __tagHelperExecutionContext.AddHtmlAttribute("class", "Hello World"); __tagHelperExecutionContext.Output = __tagHelperRunner.RunAsync(__tagHelperExecutionContext).Result; WriteLiteral(__tagHelperExecutionContext.Output.GenerateStartTag()); Instrumentation.BeginContext(63, 11, true); WriteLiteral("Body of Tag"); Instrumentation.EndContext(); WriteLiteral(__tagHelperExecutionContext.Output.GenerateEndTag()); __tagHelperExecutionContext = __tagHelperScopeManager.End(); }
#pragma warning disable 1998 public override async Task ExecuteAsync() { __tagHelperRunner = __tagHelperRunner ?? new global::Microsoft.AspNetCore.Razor.Runtime.TagHelperRunner(); __tagHelperScopeManager = __tagHelperScopeManager ?? new global::Microsoft.AspNetCore.Razor.Runtime.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); Instrumentation.BeginContext(31, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { } ); __TestNamespace_PTagHelper = CreateTagHelper <global::TestNamespace.PTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); Instrumentation.BeginContext(33, 10, false); Write(__tagHelperExecutionContext.Output); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); }