|
|
Razor
|
public class RazorEngine<TLanguage> : IRazorEngine, IRazorEngineService, IDisposable where TLanguage : new(), LanguageConstraint
The RazorEngineTLanguage type exposes the following members.
| Name | Description | |
|---|---|---|
| RazorEngineTLanguage | Creates a new RazorEngineTLanguage instance. |
| Name | Description | |
|---|---|---|
| Default | Gets default configured razor engine instance. | |
| EngineService | Gets the IRazorEngineService instance used by the RazorEngineTLanguage. | |
| TemplatePath | Gets the template path defined for this RazorEngineTLanguage. |
| Name | Description | |
|---|---|---|
| AddTemplate | Adds a given template to the template manager as dynamic template. | |
| Compile(ITemplateKey, Type) | Compiles the specified template and caches it. | |
| Compile(String, Type) | Compiles the specified template, by name, and caches it. | |
| Dispose | Releases all the resources used by the RazorEngineTLanguage object. | |
| Dispose(Boolean) | Releases the unmanaged resources used by the RazorEngineTLanguage object and optionally releases the managed resources. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetConfiguredEngine | Gets a shared RazorEngineTLanguage instance created based on configured template path defined in the specified settingsCategory. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetKey | Gets a given key from the ITemplateManager implementation. See GetKey(String, ResolveType, ITemplateKey). | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IsTemplateCached | Checks if a given template is already cached. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| PreCompile(ActionException) | Kicks off a task to pre-compile Razor templates. | |
| PreCompile(ActionException, String) | Kicks off a task to pre-compile Razor templates. | |
| PreCompile(Type, ActionException, String) | Kicks off a task to pre-compile Razor templates. | |
| Run | Runs the given cached template. | |
| RunCompile | Runs the given cached template. When the cache does not contain the template it will be compiled and cached beforehand. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) | |
| GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |