Méthode | Description | |
---|---|---|
CompileTemplate ( string templateBody, Type>.Dictionary |
Compile template to ensure that the compiled assembly is already in cache when RenderTemplate is called for the first time. For precompiling, the actual values of globals are not required, just the names and types of the global variables.
|
Méthode | Description | |
---|---|---|
ComputeTemplateKey ( TemplateInfo ti ) : string |
Returns a unique key that represent the template in the template cache. The template key is computed from the following parts: Template body hash, Global types hash, Imported templates hash, Referenced assemblies hash
|
|
GenerateTemplateProgram ( string templateBody, Type>.Dictionary |
Generate template program from template body and generate the TemplateKey
|
|
GetTemplateGeneratorVersion ( |
Try to find the template source generator version
|
|
GetTemplateRenderMethod ( |
Try to find the render method in assembly
|
public abstract CompileTemplate ( string templateBody, Type>.Dictionary |
||
templateBody | string | The template body |
globalsTypes | Type>.Dictionary | Dictionary of types of global variables |
referencedAssemblies | List |
List of referenced assemblies |
Résultat | TemplateInfo |
protected static ComputeTemplateKey ( TemplateInfo ti ) : string | ||
ti | TemplateInfo | Template info |
Résultat | string |
protected static GenerateTemplateProgram ( string templateBody, Type>.Dictionary |
||
templateBody | string | |
globalsTypes | Type>.Dictionary | |
referencedAssemblies | List |
|
Résultat | TemplateInfo |
protected static GetTemplateGeneratorVersion ( |
||
assembly | ||
ti | TemplateInfo | |
Résultat | string |
protected static GetTemplateRenderMethod ( |
||
assembly | ||
ti | TemplateInfo | |
Résultat |