Click or drag to resize

RazorCoreEngine Class

RazorEngineCore-backed replacement for the bits of the Antaris fork that Seal uses: a string-keyed compiled-template cache with optional on-disk persistence (RazorCacheDirectory). Reached only via RazorHelper when UseRazorCore is enabled.
Inheritance Hierarchy
SystemObject
  Seal.HelpersRazorCoreEngine

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public static class RazorCoreEngine

The RazorCoreEngine type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCompile Compile 'script' under 'key' (no-op if already cached). When cacheDir is set, a persisted assembly is reused (and invalidated by lastModification), mirroring GetGlobalAssemblyCache/SaveAssemblyInCache.
Public methodStatic memberIsTemplateCached Returns true if a compiled template is cached under the given key
Public methodStatic memberRun Run the compiled template cached under 'key' with the given model and ViewBag, and return the rendered result
Top
See Also