Click or drag to resize

RazorCoreEngineCompile Method

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.

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public static void Compile(
	string script,
	string key,
	string cacheDir,
	DateTime? lastModification
)

Parameters

script  String
 
key  String
 
cacheDir  String
 
lastModification  NullableDateTime
 
See Also