#pragma warning restore 0414 #pragma warning disable 1998 public async System.Threading.Tasks.Task ExecuteAsync() { #line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" var code = "some code"; #line default #line hidden DefineSection("MySection", async(__razor_section_writer) => { #line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" __o = code; #line default #line hidden __TestNamespace_NestedTagHelper = CreateTagHelper <global::TestNamespace.NestedTagHelper>(); __TestNamespace_MyTagHelper = CreateTagHelper <global::TestNamespace.MyTagHelper>(); #line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" __o = DateTime.Now; #line default #line hidden __TestNamespace_MyTagHelper.BoundProperty = string.Empty; #line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" __o = DateTime.Now; #line default #line hidden __TestNamespace_NestedTagHelper = CreateTagHelper <global::TestNamespace.NestedTagHelper>(); } ); }
#pragma warning disable 1998 public async System.Threading.Tasks.Task ExecuteAsync() { WriteLiteral("\r\n"); #line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" var code = "some code"; #line default #line hidden WriteLiteral("\r\n"); DefineSection("MySection", async() => { WriteLiteral("\r\n <div>\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("mytaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { WriteLiteral("\r\n In None ContentBehavior.\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("nestedtaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { WriteLiteral("Some buffered values with "); #line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" Write(code); #line default #line hidden } ); __TestNamespace_NestedTagHelper = CreateTagHelper <global::TestNamespace.NestedTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_NestedTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); } ); __TestNamespace_MyTagHelper = CreateTagHelper <global::TestNamespace.MyTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_MyTagHelper); BeginWriteTagHelperAttribute(); WriteLiteral("Current Time: "); #line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" WriteLiteral(DateTime.Now); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __TestNamespace_MyTagHelper.BoundProperty = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("boundproperty", __TestNamespace_MyTagHelper.BoundProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unboundproperty", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); AddHtmlAttributeValue("", 188, "Current", 188, 7, true); AddHtmlAttributeValue(" ", 195, "Time:", 196, 6, true); #line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" AddHtmlAttributeValue(" ", 201, DateTime.Now, 202, 13, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </div>\r\n\r\n"); WriteLiteral("\r\n <div>\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("nestedtaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { } ); __TestNamespace_NestedTagHelper = CreateTagHelper <global::TestNamespace.NestedTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_NestedTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </div>\r\n "); } ); }
#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(); #line 3 "TagHelpersInSection.cshtml" var code = "some code"; #line default #line hidden Instrumentation.BeginContext(69, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); DefineSection("MySection", async(__razor_section_writer) => { Instrumentation.BeginContext(91, 21, true); WriteLiteralTo(__razor_section_writer, "\r\n <div>\r\n "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("mytaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { Instrumentation.BeginContext(215, 52, true); WriteLiteral("\r\n In None ContentBehavior.\r\n "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("nestedtaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { Instrumentation.BeginContext(284, 26, true); WriteLiteral("Some buffered values with "); Instrumentation.EndContext(); Instrumentation.BeginContext(311, 4, false); #line 11 "TagHelpersInSection.cshtml" Write(code); #line default #line hidden Instrumentation.EndContext(); } ); __TestNamespace_NestedTagHelper = CreateTagHelper <global::TestNamespace.NestedTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_NestedTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Instrumentation.BeginContext(267, 66, false); Write(__tagHelperExecutionContext.Output); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); Instrumentation.BeginContext(333, 10, true); WriteLiteral("\r\n "); Instrumentation.EndContext(); } ); __TestNamespace_MyTagHelper = CreateTagHelper <global::TestNamespace.MyTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_MyTagHelper); StartTagHelperWritingScope(null); WriteLiteral("Current Time: "); #line 9 "TagHelpersInSection.cshtml" WriteLiteral(DateTime.Now); #line default #line hidden __tagHelperStringValueBuffer = EndTagHelperWritingScope(); __TestNamespace_MyTagHelper.BoundProperty = __tagHelperStringValueBuffer.GetContent(HtmlEncoder); __tagHelperExecutionContext.AddTagHelperAttribute("boundproperty", __TestNamespace_MyTagHelper.BoundProperty); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unboundproperty", 3); AddHtmlAttributeValue("", 186, "Current", 186, 7, true); AddHtmlAttributeValue(" ", 193, "Time:", 194, 6, true); #line 9 "TagHelpersInSection.cshtml" AddHtmlAttributeValue(" ", 199, DateTime.Now, 200, 14, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Instrumentation.BeginContext(112, 245, false); WriteTo(__razor_section_writer, __tagHelperExecutionContext.Output); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); Instrumentation.BeginContext(357, 14, true); WriteLiteralTo(__razor_section_writer, "\r\n </div>\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(31, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); #line 3 "TagHelpersInSection.cshtml" var code = "some code"; #line default #line hidden Instrumentation.BeginContext(69, 2, true); WriteLiteral("\r\n"); Instrumentation.EndContext(); DefineSection("MySection", async(__razor_section_writer) => { Instrumentation.BeginContext(91, 21, true); WriteLiteralTo(__razor_section_writer, "\r\n <div>\r\n "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("mytaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { Instrumentation.BeginContext(215, 52, true); WriteLiteral("\r\n In None ContentBehavior.\r\n "); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("nestedtaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { Instrumentation.BeginContext(284, 26, true); WriteLiteral("Some buffered values with "); Instrumentation.EndContext(); Instrumentation.BeginContext(311, 4, false); #line 11 "TagHelpersInSection.cshtml" Write(code); #line default #line hidden Instrumentation.EndContext(); } ); __TestNamespace_NestedTagHelper = CreateTagHelper<global::TestNamespace.NestedTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_NestedTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Instrumentation.BeginContext(267, 66, false); Write(__tagHelperExecutionContext.Output); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); Instrumentation.BeginContext(333, 10, true); WriteLiteral("\r\n "); Instrumentation.EndContext(); } ); __TestNamespace_MyTagHelper = CreateTagHelper<global::TestNamespace.MyTagHelper>(); __tagHelperExecutionContext.Add(__TestNamespace_MyTagHelper); StartTagHelperWritingScope(null); WriteLiteral("Current Time: "); #line 9 "TagHelpersInSection.cshtml" WriteLiteral(DateTime.Now); #line default #line hidden __tagHelperStringValueBuffer = EndTagHelperWritingScope(); __TestNamespace_MyTagHelper.BoundProperty = __tagHelperStringValueBuffer.GetContent(HtmlEncoder); __tagHelperExecutionContext.AddTagHelperAttribute("boundproperty", __TestNamespace_MyTagHelper.BoundProperty); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unboundproperty", 3); AddHtmlAttributeValue("", 186, "Current", 186, 7, true); AddHtmlAttributeValue(" ", 193, "Time:", 194, 6, true); #line 9 "TagHelpersInSection.cshtml" AddHtmlAttributeValue(" ", 199, DateTime.Now, 200, 14, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Instrumentation.BeginContext(112, 245, false); WriteTo(__razor_section_writer, __tagHelperExecutionContext.Output); Instrumentation.EndContext(); __tagHelperExecutionContext = __tagHelperScopeManager.End(); Instrumentation.BeginContext(357, 14, true); WriteLiteralTo(__razor_section_writer, "\r\n </div>\r\n"); Instrumentation.EndContext(); } ); }