Update RazorTemplateRenderingEngine.cs

pull/17876/head
maliming 1 year ago committed by GitHub
parent b8c0f2b19b
commit 4d392ae352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -116,8 +116,8 @@ public class RazorTemplateRenderingEngine : TemplateRenderingEngineBase, ITransi
{
var compiledViewProvider = scope.ServiceProvider.GetRequiredService<IAbpCompiledViewProvider>();
var assembly = await compiledViewProvider.GetAssemblyAsync(templateDefinition);
var templateType = assembly.GetType(AbpRazorTemplateConsts.TypeName);
var template = (IRazorTemplatePage)Activator.CreateInstance(templateType);
var templateType = assembly.GetType(AbpRazorTemplateConsts.TypeName)!;
var template = (IRazorTemplatePage)Activator.CreateInstance(templateType)!;
var modelType = templateType
.GetInterfaces()

Loading…
Cancel
Save