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
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
GetLispInterpreter(PageResult, ScriptScopeContext)
View Source
Declaration
public static Lisp.Interpreter GetLispInterpreter(this PageResult pageResult, ScriptScopeContext scope)
Returns
ServiceStack.Script.Lisp.Interpreter
Parameters
Type | Name |
---|---|
ServiceStack.Script.PageResult | pageResult |
ServiceStack.Script.ScriptScopeContext | scope |
LispSharpPage(ScriptContext, String)
View Source
Declaration
public static SharpPage LispSharpPage(this ScriptContext context, string lisp)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
System.String | lisp |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
System.String | lisp |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
System.String | lisp |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
System.String | lisp |
ParseLisp(ScriptContext, ReadOnlyMemory<Char>)
View Source
Declaration
public static LispStatements ParseLisp(this ScriptContext context, ReadOnlyMemory<char> lisp)
Returns
ServiceStack.Script.LispStatements
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
System.String | lisp |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
System.String | lisp |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
System.String | lisp |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
System.String | lisp |
System.Collections.Generic.Dictionary<System.String,System.Object> | args |
EnsureReturn(String)
View Source
Declaration
public static string EnsureReturn(string lisp)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | lisp |