ScriptHelper Class
Namespace
Statiq.Core
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IScriptHelper"] click Interface0 "/api/Statiq.Common/IScriptHelper" Type["ScriptHelper"] class Type type-node

Syntax

public class ScriptHelper : IScriptHelper

Constructors

Fields

Name Field Type Constant Value Summary
AssemblyName string ScriptAssembly
static
FactoryClassName string ScriptFactory
static
ScriptClassName string Script
static

Methods

Name Return Value Summary
Compile(string) byte[]
Compiles a script into an in-memory script assembly for later evaluation.
EvaluateAsync(string, IMetadata) Task<object>
Compiles, caches, and evaluates a script.
GetScriptNamespaces() IEnumerable<string>
GetScriptReferences() IEnumerable<Assembly>
LogAndEnsureCompilationSuccess(EmitResult, ILogger, string) void
static

Extension Methods