11namespace TestOutput
22{
3+ using Microsoft . AspNet . Razor . Runtime . TagHelpers ;
34 using System ;
45 using System . Threading . Tasks ;
56
67 public class BasicTagHelpers
78 {
8- [ Activate ]
9- private ITagHelperRunner __tagHelperRunner { get ; set ; }
10- [ Activate ]
11- private ITagHelperScopeManager __tagHelperScopeManager { get ; set ; }
9+ private System . IO . TextWriter __tagHelperStringValueBuffer = null ;
10+ private TagHelperExecutionContext __tagHelpersExecutionContext = null ;
11+ private TagHelperRunner __tagHelperRunner = new TagHelperRunner ( ) ;
12+ private TagHelperScopeManager __tagHelperScopeManager = new TagHelperScopeManager ( ) ;
13+ private PTagHelper __PTagHelper = null ;
14+ private InputTagHelper __InputTagHelper = null ;
15+ private InputTagHelper2 __InputTagHelper2 = null ;
1216 #line hidden
1317 public BasicTagHelpers ( )
1418 {
@@ -17,57 +21,52 @@ public BasicTagHelpers()
1721 #pragma warning disable 1998
1822 public override async Task ExecuteAsync ( )
1923 {
20- var __tagHelperBufferedStringValue = string . Empty ;
21- TagHelperExecutionContext __executionContext = null ;
22- PTagHelper __PTagHelper ;
23- InputTagHelper __InputTagHelper ;
24- InputTagHelper2 __InputTagHelper2 ;
2524 WriteLiteral ( "<div class=\" randomNonTagHelperAttribute\" >\r \n " ) ;
26- __executionContext = __tagHelperScopeManager . Begin ( "p" ) ;
25+ __tagHelpersExecutionContext = __tagHelperScopeManager . Begin ( "p" ) ;
2726 __PTagHelper = CreateTagHelper < PTagHelper > ( ) ;
28- __executionContext . Add ( __PTagHelper ) ;
29- __executionContext . AddHtmlAttribute ( "class" , "Hello World" ) ;
30- __executionContext . Output = await __tagHelperRunner . RunAsync ( __executionContext ) ;
31- WriteLiteral ( __executionContext . Output . GenerateTagStart ( ) ) ;
27+ __tagHelpersExecutionContext . Add ( __PTagHelper ) ;
28+ __tagHelpersExecutionContext . AddHtmlAttribute ( "class" , "Hello World" ) ;
29+ __tagHelpersExecutionContext . Output = __tagHelperRunner . RunAsync ( __tagHelpersExecutionContext ) . Result ;
30+ WriteLiteral ( __tagHelpersExecutionContext . Output . GenerateStartTag ( ) ) ;
3231 WriteLiteral ( "\r \n " ) ;
33- __executionContext = __tagHelperScopeManager . Begin ( "p" ) ;
32+ __tagHelpersExecutionContext = __tagHelperScopeManager . Begin ( "p" ) ;
3433 __PTagHelper = CreateTagHelper < PTagHelper > ( ) ;
35- __executionContext . Add ( __PTagHelper ) ;
36- __executionContext . Output = await __tagHelperRunner . RunAsync ( __executionContext ) ;
37- WriteLiteral ( __executionContext . Output . GenerateTagStart ( ) ) ;
38- WriteLiteral ( __executionContext . Output . GenerateTagEnd ( ) ) ;
39- __executionContext = __tagHelperScopeManager . End ( ) ;
34+ __tagHelpersExecutionContext . Add ( __PTagHelper ) ;
35+ __tagHelpersExecutionContext . Output = __tagHelperRunner . RunAsync ( __tagHelpersExecutionContext ) . Result ;
36+ WriteLiteral ( __tagHelpersExecutionContext . Output . GenerateStartTag ( ) ) ;
37+ WriteLiteral ( __tagHelpersExecutionContext . Output . GenerateEndTag ( ) ) ;
38+ __tagHelpersExecutionContext = __tagHelperScopeManager . End ( ) ;
4039 WriteLiteral ( "\r \n " ) ;
41- __executionContext = __tagHelperScopeManager . Begin ( "input" ) ;
40+ __tagHelpersExecutionContext = __tagHelperScopeManager . Begin ( "input" ) ;
4241 __InputTagHelper = CreateTagHelper < InputTagHelper > ( ) ;
43- __executionContext . Add ( __InputTagHelper ) ;
42+ __tagHelpersExecutionContext . Add ( __InputTagHelper ) ;
4443 __InputTagHelper . Type = "text" ;
45- __executionContext . AddTagHelperAttribute ( "type" , __InputTagHelper . Type ) ;
44+ __tagHelpersExecutionContext . AddTagHelperAttribute ( "type" , __InputTagHelper . Type ) ;
4645 __InputTagHelper2 = CreateTagHelper < InputTagHelper2 > ( ) ;
47- __executionContext . Add ( __InputTagHelper2 ) ;
46+ __tagHelpersExecutionContext . Add ( __InputTagHelper2 ) ;
4847 __InputTagHelper2 . Type = __InputTagHelper . Type ;
49- __executionContext . Output = await __tagHelperRunner . RunAsync ( __executionContext ) ;
50- WriteLiteral ( __executionContext . Output . GenerateTagStart ( ) ) ;
51- WriteLiteral ( __executionContext . Output . GenerateTagEnd ( ) ) ;
52- __executionContext = __tagHelperScopeManager . End ( ) ;
48+ __tagHelpersExecutionContext . Output = __tagHelperRunner . RunAsync ( __tagHelpersExecutionContext ) . Result ;
49+ WriteLiteral ( __tagHelpersExecutionContext . Output . GenerateStartTag ( ) ) ;
50+ WriteLiteral ( __tagHelpersExecutionContext . Output . GenerateEndTag ( ) ) ;
51+ __tagHelpersExecutionContext = __tagHelperScopeManager . End ( ) ;
5352 WriteLiteral ( "\r \n " ) ;
54- __executionContext = __tagHelperScopeManager . Begin ( "input" ) ;
53+ __tagHelpersExecutionContext = __tagHelperScopeManager . Begin ( "input" ) ;
5554 __InputTagHelper = CreateTagHelper < InputTagHelper > ( ) ;
56- __executionContext . Add ( __InputTagHelper ) ;
55+ __tagHelpersExecutionContext . Add ( __InputTagHelper ) ;
5756 __InputTagHelper . Type = "checkbox" ;
58- __executionContext . AddTagHelperAttribute ( "type" , __InputTagHelper . Type ) ;
57+ __tagHelpersExecutionContext . AddTagHelperAttribute ( "type" , __InputTagHelper . Type ) ;
5958 __InputTagHelper2 = CreateTagHelper < InputTagHelper2 > ( ) ;
60- __executionContext . Add ( __InputTagHelper2 ) ;
59+ __tagHelpersExecutionContext . Add ( __InputTagHelper2 ) ;
6160 __InputTagHelper2 . Type = __InputTagHelper . Type ;
6261 __InputTagHelper2 . Checked = true ;
63- __executionContext . AddTagHelperAttribute ( "checked" , __InputTagHelper2 . Checked ) ;
64- __executionContext . Output = await __tagHelperRunner . RunAsync ( __executionContext ) ;
65- WriteLiteral ( __executionContext . Output . GenerateTagStart ( ) ) ;
66- WriteLiteral ( __executionContext . Output . GenerateTagEnd ( ) ) ;
67- __executionContext = __tagHelperScopeManager . End ( ) ;
62+ __tagHelpersExecutionContext . AddTagHelperAttribute ( "checked" , __InputTagHelper2 . Checked ) ;
63+ __tagHelpersExecutionContext . Output = __tagHelperRunner . RunAsync ( __tagHelpersExecutionContext ) . Result ;
64+ WriteLiteral ( __tagHelpersExecutionContext . Output . GenerateStartTag ( ) ) ;
65+ WriteLiteral ( __tagHelpersExecutionContext . Output . GenerateEndTag ( ) ) ;
66+ __tagHelpersExecutionContext = __tagHelperScopeManager . End ( ) ;
6867 WriteLiteral ( "\r \n " ) ;
69- WriteLiteral ( __executionContext . Output . GenerateTagEnd ( ) ) ;
70- __executionContext = __tagHelperScopeManager . End ( ) ;
68+ WriteLiteral ( __tagHelpersExecutionContext . Output . GenerateEndTag ( ) ) ;
69+ __tagHelpersExecutionContext = __tagHelperScopeManager . End ( ) ;
7170 WriteLiteral ( "\r \n </div>" ) ;
7271 }
7372 #pragma warning restore 1998
0 commit comments