Skip to main content

ScriptLispUtils

Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class ScriptLispUtils

Methods

GetLispInterpreter(ScriptScopeContext)

View Source
Declaration
public static Lisp.Interpreter GetLispInterpreter(this ScriptScopeContext scope)
Returns

ServiceStack.Script.Lisp.Interpreter

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

GetLispInterpreter(PageResult, ScriptScopeContext)

View Source
Declaration
public static Lisp.Interpreter GetLispInterpreter(this PageResult pageResult, ScriptScopeContext scope)
Returns

ServiceStack.Script.Lisp.Interpreter

Parameters
TypeName
ServiceStack.Script.PageResultpageResult
ServiceStack.Script.ScriptScopeContextscope

LispSharpPage(ScriptContext, String)

View Source
Declaration
public static SharpPage LispSharpPage(this ScriptContext context, string lisp)
Returns

ServiceStack.Script.SharpPage

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
System.Stringlisp

RenderLisp(ScriptContext, String, Dictionary<String, Object>)

View Source
Declaration
public static string RenderLisp(this ScriptContext context, string lisp, Dictionary<string, object> args = null)
Returns

System.String

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
System.Stringlisp
System.Collections.Generic.Dictionary<System.String,System.Object>args

RenderLispAsync(ScriptContext, String, Dictionary<String, Object>)

View Source
Declaration
public static async Task<string> RenderLispAsync(this ScriptContext context, string lisp, Dictionary<string, object> args = null)
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
System.Stringlisp
System.Collections.Generic.Dictionary<System.String,System.Object>args

ParseLisp(ScriptContext, String)

View Source
Declaration
public static LispStatements ParseLisp(this ScriptContext context, string lisp)
Returns

ServiceStack.Script.LispStatements

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
System.Stringlisp

ParseLisp(ScriptContext, ReadOnlyMemory<Char>)

View Source
Declaration
public static LispStatements ParseLisp(this ScriptContext context, ReadOnlyMemory<char> lisp)
Returns

ServiceStack.Script.LispStatements

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
ReadOnlyMemory<System.Char>lisp

EvaluateLisp<T>(ScriptContext, String, Dictionary<String, Object>)

View Source
Declaration
public static T EvaluateLisp<T>(this ScriptContext context, string lisp, Dictionary<string, object> args = null)
Returns

<T>

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
System.Stringlisp
System.Collections.Generic.Dictionary<System.String,System.Object>args
Type Parameters
  • T

EvaluateLisp(ScriptContext, String, Dictionary<String, Object>)

View Source
Declaration
public static object EvaluateLisp(this ScriptContext context, string lisp, Dictionary<string, object> args = null)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
System.Stringlisp
System.Collections.Generic.Dictionary<System.String,System.Object>args

EvaluateLispAsync<T>(ScriptContext, String, Dictionary<String, Object>)

View Source
Declaration
public static async Task<T> EvaluateLispAsync<T>(this ScriptContext context, string lisp, Dictionary<string, object> args = null)
Returns

System.Threading.Tasks.Task<<T>>

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
System.Stringlisp
System.Collections.Generic.Dictionary<System.String,System.Object>args
Type Parameters
  • T

EvaluateLispAsync(ScriptContext, String, Dictionary<String, Object>)

View Source
Declaration
public static async Task<object> EvaluateLispAsync(this ScriptContext context, string lisp, Dictionary<string, object> args = null)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.Script.ScriptContextcontext
System.Stringlisp
System.Collections.Generic.Dictionary<System.String,System.Object>args

EnsureReturn(String)

View Source
Declaration
public static string EnsureReturn(string lisp)
Returns

System.String

Parameters
TypeName
System.Stringlisp