Razor |
public class RazorHelper
The RazorHelper type exposes the following members.
| Name | Description | |
|---|---|---|
| RazorHelper | Initializes a new instance of the RazorHelper class |
| Name | Description | |
|---|---|---|
| Compile | Compile a Razor script under the given cache key if not already cached | |
| CompileExecute | Compile a Razor script (if not already cached) and execute it with the given model. Returns the result of the script execution. | |
| CompilePartial | Compile a Razor script as a partial template and return its cache key (used later by @Include) | |
| 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) | |
| GetFullScript | Returns the script with the default Seal using directives added (@using Seal.Model, @using Seal.Helpers) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| LoadRazorAssemblies | Force the load of the assemblies | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| _01 | Field used to force the load of the System.Diagnostics.EventLog assembly (necessary to compile Security Scripts) | |
| RazorCacheDirectory | Directory where the compiled script assemblies are cached | |
| Validator | Optional script validator called before compilation and execution |