Skip to main content

IScriptValue

Define a rich value that can either be a value, a constant JS Expression or a #Script Code script

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IScriptValue

Properties

Value

Use constant Value

View Source
Declaration
object Value { get; set; }

Expression

Create Value by Evaluating a #Script JS Expression. Lightweight, only evaluates an AST Token. Results are only evaluated once and cached globally in AppHost.ScriptContext.Cache

View Source
Declaration
string Expression { get; set; }

Eval

Create Value by evaluating #Script Code, results of same expression are cached per request

View Source
Declaration
string Eval { get; set; }

NoCache

Whether to disable result caching for this Script Value

View Source
Declaration
bool NoCache { get; set; }