@@ -36,6 +36,7 @@ public class MvcRazorHost : RazorEngineHost, IMvcRazorHost
36
36
} ;
37
37
38
38
private readonly IFileSystem _fileSystem ;
39
+
39
40
// CodeGenerationContext.DefaultBaseClass is set to MyBaseType<dynamic>.
40
41
// This field holds the type name without the generic decoration (MyBaseType)
41
42
private readonly string _baseType ;
@@ -85,11 +86,28 @@ protected internal MvcRazorHost([NotNull] IFileSystem fileSystem)
85
86
defineSectionMethodName : "DefineSection" ,
86
87
generatedTagHelperContext : new GeneratedTagHelperContext
87
88
{
89
+ ExecutionContextTypeName = typeof ( TagHelperExecutionContext ) . FullName ,
90
+ ExecutionContextAddMethodName = nameof ( TagHelperExecutionContext . Add ) ,
91
+ ExecutionContextAddTagHelperAttributeMethodName =
92
+ nameof ( TagHelperExecutionContext . AddTagHelperAttribute ) ,
93
+ ExecutionContextAddHtmlAttributeMethodName = nameof ( TagHelperExecutionContext . AddHtmlAttribute ) ,
94
+ ExecutionContextOutputPropertyName = nameof ( TagHelperExecutionContext . Output ) ,
95
+
88
96
RunnerTypeName = typeof ( TagHelperRunner ) . FullName ,
97
+ RunnerRunAsyncMethodName = nameof ( TagHelperRunner . RunAsync ) ,
98
+
89
99
ScopeManagerTypeName = typeof ( TagHelperScopeManager ) . FullName ,
90
- ExecutionContextTypeName = typeof ( TagHelperExecutionContext ) . FullName ,
100
+ ScopeManagerBeginMethodName = nameof ( TagHelperScopeManager . Begin ) ,
101
+ ScopeManagerEndMethodName = nameof ( TagHelperScopeManager . End ) ,
102
+
103
+ OutputGenerateStartTagMethodName = nameof ( TagHelperOutput . GenerateStartTag ) ,
104
+ OutputGenerateContentMethodName = nameof ( TagHelperOutput . GenerateContent ) ,
105
+ OutputGenerateEndTagMethodName = nameof ( TagHelperOutput . GenerateEndTag ) ,
106
+
107
+ // Can't use nameof because RazorPage is not accessible here.
108
+ CreateTagHelperMethodName = "CreateTagHelper" ,
91
109
StartWritingScopeMethodName = "StartWritingScope" ,
92
- EndWritingScopeMethodName = "EndWritingScope"
110
+ EndWritingScopeMethodName = "EndWritingScope" ,
93
111
} )
94
112
{
95
113
ResolveUrlMethodName = "Href" ,
0 commit comments