Skip to main content

DefaultScripts

Assembly: ServiceStack.Common.dll​
View Source​
Declaration
public class DefaultScripts : ScriptMethods, IConfigureScriptContext

Properties​

RemoveNewLinesFor​

View Source​
Declaration
public static List<string> RemoveNewLinesFor { get; }

Inherited Properties​

Context​

View Source​
Declaration
public ScriptContext Context { get; set; }

InvokerCache​

View Source​
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }

Pages​

View Source​
Declaration
public ISharpPages Pages { get; set; }

Fields​

Instance​

View Source​
Declaration
public static readonly DefaultScripts Instance

EvaluateWhenSkippingFilterExecution​

View Source​
Declaration
public static List<string> EvaluateWhenSkippingFilterExecution

XssFragments​

View Source​
Declaration
public static string[] XssFragments

Methods​

push(IList, Object)​

View Source​
Declaration
public int push(IList list, object item)
Returns​

System.Int32

Parameters​
TypeName
System.Collections.IListlist
System.Objectitem

pop(IList)​

View Source​
Declaration
public object pop(IList list)
Returns​

System.Object

Parameters​
TypeName
System.Collections.IListlist

shift(IList)​

View Source​
Declaration
public object shift(IList list)
Returns​

System.Object

Parameters​
TypeName
System.Collections.IListlist

unshift(IList, Object)​

View Source​
Declaration
public object unshift(IList list, object item)
Returns​

System.Object

Parameters​
TypeName
System.Collections.IListlist
System.Objectitem

indexOf(Object, Object)​

View Source​
Declaration
public int indexOf(object target, object item)
Returns​

System.Int32

Parameters​
TypeName
System.Objecttarget
System.Objectitem

indexOf(Object, Object, Int32)​

View Source​
Declaration
public int indexOf(object target, object item, int startIndex)
Returns​

System.Int32

Parameters​
TypeName
System.Objecttarget
System.Objectitem
System.Int32startIndex

lastIndexOf(Object, Object)​

View Source​
Declaration
public int lastIndexOf(object target, object item)
Returns​

System.Int32

Parameters​
TypeName
System.Objecttarget
System.Objectitem

lastIndexOf(Object, Object, Int32)​

View Source​
Declaration
public int lastIndexOf(object target, object item, int startIndex)
Returns​

System.Int32

Parameters​
TypeName
System.Objecttarget
System.Objectitem
System.Int32startIndex

splice(IList, Int32)​

View Source​
Declaration
public object splice(IList list, int removeAt)
Returns​

System.Object

Parameters​
TypeName
System.Collections.IListlist
System.Int32removeAt

splice(IList, Int32, Int32)​

View Source​
Declaration
public List<object> splice(IList list, int removeAt, int deleteCount)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IListlist
System.Int32removeAt
System.Int32deleteCount

splice(IList, Int32, Int32, List<Object>)​

View Source​
Declaration
public List<object> splice(IList list, int removeAt, int deleteCount, List<object> insertItems)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IListlist
System.Int32removeAt
System.Int32deleteCount
System.Collections.Generic.List<System.Object>insertItems

slice(IList)​

View Source​
Declaration
public List<object> slice(IList list)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IListlist

slice(IList, Int32)​

View Source​
Declaration
public List<object> slice(IList list, int begin)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IListlist
System.Int32begin

slice(IList, Int32, Int32)​

View Source​
Declaration
public List<object> slice(IList list, int begin, int end)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IListlist
System.Int32begin
System.Int32end

forEach(ScriptScopeContext, Object, JsArrowFunctionExpression)​

View Source​
Declaration
public IgnoreResult forEach(ScriptScopeContext scope, object target, JsArrowFunctionExpression arrowExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
ServiceStack.Script.JsArrowFunctionExpressionarrowExpr

every(ScriptScopeContext, IList, JsArrowFunctionExpression)​

View Source​
Declaration
public bool every(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

some(ScriptScopeContext, IList, JsArrowFunctionExpression)​

View Source​
Declaration
public bool some(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

find(ScriptScopeContext, IList, JsArrowFunctionExpression)​

View Source​
Declaration
public object find(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

findIndex(ScriptScopeContext, IList, JsArrowFunctionExpression)​

View Source​
Declaration
public int findIndex(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns​

System.Int32

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

filter(ScriptScopeContext, IList, JsArrowFunctionExpression)​

View Source​
Declaration
public List<object> filter(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

flat(IList)​

View Source​
Declaration
public List<object> flat(IList list)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IListlist

flat(IList, Int32)​

View Source​
Declaration
public List<object> flat(IList list, int depth)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IListlist
System.Int32depth

flatMap(ScriptScopeContext, IList, JsArrowFunctionExpression)​

View Source​
Declaration
public List<object> flatMap(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression

flatMap(ScriptScopeContext, IList, JsArrowFunctionExpression, Int32)​

View Source​
Declaration
public List<object> flatMap(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression, int depth)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IListlist
ServiceStack.Script.JsArrowFunctionExpressionexpression
System.Int32depth

includes(IList, Object)​

View Source​
Declaration
public bool includes(IList list, object item)
Returns​

System.Boolean

Parameters​
TypeName
System.Collections.IListlist
System.Objectitem

includes(IList, Object, Int32)​

View Source​
Declaration
public bool includes(IList list, object item, int fromIndex)
Returns​

System.Boolean

Parameters​
TypeName
System.Collections.IListlist
System.Objectitem
System.Int32fromIndex

sort(List<Object>)​

View Source​
Declaration
public List<object> sort(List<object> list)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.Generic.List<System.Object>list

Configure(ScriptContext)​

View Source​
Declaration
public void Configure(ScriptContext context)
Parameters​
TypeName
ServiceStack.Script.ScriptContextcontext

now()​

View Source​
Declaration
public DateTime now()
Returns​

System.DateTime

utcNow()​

View Source​
Declaration
public DateTime utcNow()
Returns​

System.DateTime

nowOffset()​

View Source​
Declaration
public DateTimeOffset nowOffset()
Returns​

System.DateTimeOffset

utcNowOffset()​

View Source​
Declaration
public DateTimeOffset utcNowOffset()
Returns​

System.DateTimeOffset

nguid()​

View Source​
Declaration
public Guid nguid()
Returns​

System.Guid

addTicks(DateTime, Int32)​

View Source​
Declaration
public DateTime addTicks(DateTime target, int count)
Returns​

System.DateTime

Parameters​
TypeName
System.DateTimetarget
System.Int32count

addMilliseconds(DateTime, Int32)​

View Source​
Declaration
public DateTime addMilliseconds(DateTime target, int count)
Returns​

System.DateTime

Parameters​
TypeName
System.DateTimetarget
System.Int32count

addSeconds(DateTime, Int32)​

View Source​
Declaration
public DateTime addSeconds(DateTime target, int count)
Returns​

System.DateTime

Parameters​
TypeName
System.DateTimetarget
System.Int32count

addMinutes(DateTime, Int32)​

View Source​
Declaration
public DateTime addMinutes(DateTime target, int count)
Returns​

System.DateTime

Parameters​
TypeName
System.DateTimetarget
System.Int32count

addHours(DateTime, Int32)​

View Source​
Declaration
public DateTime addHours(DateTime target, int count)
Returns​

System.DateTime

Parameters​
TypeName
System.DateTimetarget
System.Int32count

addDays(DateTime, Int32)​

View Source​
Declaration
public DateTime addDays(DateTime target, int count)
Returns​

System.DateTime

Parameters​
TypeName
System.DateTimetarget
System.Int32count

addMonths(DateTime, Int32)​

View Source​
Declaration
public DateTime addMonths(DateTime target, int count)
Returns​

System.DateTime

Parameters​
TypeName
System.DateTimetarget
System.Int32count

addYears(DateTime, Int32)​

View Source​
Declaration
public DateTime addYears(DateTime target, int count)
Returns​

System.DateTime

Parameters​
TypeName
System.DateTimetarget
System.Int32count

itemsOf(Int32, Object)​

View Source​
Declaration
public List<object> itemsOf(int count, object target)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Int32count
System.Objecttarget

times(Int32)​

View Source​
Declaration
public List<int> times(int count)
Returns​

System.Collections.Generic.List<System.Int32>

Parameters​
TypeName
System.Int32count

range(Int32)​

View Source​
Declaration
public IEnumerable<int> range(int count)
Returns​

System.Collections.Generic.IEnumerable<System.Int32>

Parameters​
TypeName
System.Int32count

range(Int32, Int32)​

View Source​
Declaration
public IEnumerable<int> range(int start, int count)
Returns​

System.Collections.Generic.IEnumerable<System.Int32>

Parameters​
TypeName
System.Int32start
System.Int32count

isEven(Int32)​

View Source​
Declaration
public bool isEven(int value)
Returns​

System.Boolean

Parameters​
TypeName
System.Int32value

isOdd(Int32)​

View Source​
Declaration
public bool isOdd(int value)
Returns​

System.Boolean

Parameters​
TypeName
System.Int32value

isTrue(Object)​

View Source​
Declaration
public static bool isTrue(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isTruthy(Object)​

View Source​
Declaration
public static bool isTruthy(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isFalsy(Object)​

View Source​
Declaration
public static bool isFalsy(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

iif(Object, Object, Object)​

View Source​
Declaration
public object iif(object test, object ifTrue, object ifFalse)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest
System.ObjectifTrue
System.ObjectifFalse

when(Object, Object)​

View Source​
Declaration
public object when(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

ifNot(Object, Object)​

View Source​
Declaration
public object ifNot(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

unless(Object, Object)​

View Source​
Declaration
public object unless(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

otherwise(Object, Object)​

View Source​
Declaration
public object otherwise(object returnTarget, object elseReturn)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.ObjectelseReturn

ifElse(Object, Object, Object)​

View Source​
Declaration
public object ifElse(object returnTarget, object test, object defaultValue)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest
System.ObjectdefaultValue

ifNotElse(Object, Object, Object)​

View Source​
Declaration
public object ifNotElse(object returnTarget, object test, object defaultValue)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest
System.ObjectdefaultValue

unlessElse(Object, Object, Object)​

View Source​
Declaration
public object unlessElse(object returnTarget, object test, object defaultValue)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest
System.ObjectdefaultValue

ifFalsy(Object, Object)​

View Source​
Declaration
public object ifFalsy(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

ifTruthy(Object, Object)​

View Source​
Declaration
public object ifTruthy(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

falsy(Object, Object)​

View Source​
Declaration
public object falsy(object test, object returnIfFalsy)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest
System.ObjectreturnIfFalsy

truthy(Object, Object)​

View Source​
Declaration
public object truthy(object test, object returnIfTruthy)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest
System.ObjectreturnIfTruthy

isNull(Object)​

View Source​
Declaration
public bool isNull(object test)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttest

isNotNull(Object)​

View Source​
Declaration
public bool isNotNull(object test)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttest

exists(Object)​

View Source​
Declaration
public bool exists(object test)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttest

isZero(Double)​

View Source​
Declaration
public bool isZero(double value)
Returns​

System.Boolean

Parameters​
TypeName
System.Doublevalue

isPositive(Double)​

View Source​
Declaration
public bool isPositive(double value)
Returns​

System.Boolean

Parameters​
TypeName
System.Doublevalue

isNegative(Double)​

View Source​
Declaration
public bool isNegative(double value)
Returns​

System.Boolean

Parameters​
TypeName
System.Doublevalue

isNaN(Double)​

View Source​
Declaration
public bool isNaN(double value)
Returns​

System.Boolean

Parameters​
TypeName
System.Doublevalue

isInfinity(Double)​

View Source​
Declaration
public bool isInfinity(double value)
Returns​

System.Boolean

Parameters​
TypeName
System.Doublevalue

ifExists(Object)​

View Source​
Declaration
public object ifExists(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

ifExists(Object, Object)​

View Source​
Declaration
public object ifExists(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

ifNotExists(Object, Object)​

View Source​
Declaration
public object ifNotExists(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

ifNo(Object, Object)​

View Source​
Declaration
public object ifNo(object returnTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttarget

ifNotEmpty(Object)​

View Source​
Declaration
public object ifNotEmpty(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

ifNotEmpty(Object, Object)​

View Source​
Declaration
public object ifNotEmpty(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

ifEmpty(Object, Object)​

View Source​
Declaration
public object ifEmpty(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

ifTrue(Object, Object)​

View Source​
Declaration
public object ifTrue(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

ifFalse(Object, Object)​

View Source​
Declaration
public object ifFalse(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

isEmpty(Object)​

View Source​
Declaration
public bool isEmpty(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

IsNullOrWhiteSpace(Object)​

View Source​
Declaration
public bool IsNullOrWhiteSpace(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isEnum(Enum, Object)​

View Source​
Declaration
public bool isEnum(Enum source, object value)
Returns​

System.Boolean

Parameters​
TypeName
System.Enumsource
System.Objectvalue

hasFlag(Enum, Object)​

View Source​
Declaration
public bool hasFlag(Enum source, object value)
Returns​

System.Boolean

Parameters​
TypeName
System.Enumsource
System.Objectvalue

end()​

View Source​
Declaration
public StopExecution end()
Returns​

ServiceStack.Script.StopExecution

end(ScriptScopeContext, Object)​

View Source​
Declaration
public Task end(ScriptScopeContext scope, object ignore)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectignore

end(Object)​

View Source​
Declaration
public StopExecution end(object ignore)
Returns​

ServiceStack.Script.StopExecution

Parameters​
TypeName
System.Objectignore

endIfNull(Object)​

View Source​
Declaration
public object endIfNull(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

endIfNull(Object, Object)​

View Source​
Declaration
public object endIfNull(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfNotNull(Object)​

View Source​
Declaration
public object endIfNotNull(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

endIfNotNull(Object, Object)​

View Source​
Declaration
public object endIfNotNull(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfExists(Object)​

View Source​
Declaration
public object endIfExists(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

endIfExists(Object, Object)​

View Source​
Declaration
public object endIfExists(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfEmpty(Object)​

View Source​
Declaration
public object endIfEmpty(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

endIfEmpty(Object, Object)​

View Source​
Declaration
public object endIfEmpty(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfNotEmpty(Object)​

View Source​
Declaration
public object endIfNotEmpty(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

endIfNotEmpty(Object, Object)​

View Source​
Declaration
public object endIfNotEmpty(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfFalsy(Object)​

View Source​
Declaration
public object endIfFalsy(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

endIfFalsy(Object, Object)​

View Source​
Declaration
public object endIfFalsy(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIfTruthy(Object)​

View Source​
Declaration
public object endIfTruthy(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

endIfTruthy(Object, Object)​

View Source​
Declaration
public object endIfTruthy(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

endIf(Object)​

View Source​
Declaration
public object endIf(object test)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest

endIf(Object, Boolean)​

View Source​
Declaration
public object endIf(object returnTarget, bool test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Booleantest

endIfAny(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object endIfAny(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

endIfAll(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object endIfAll(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

endWhere(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object endWhere(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

endWhere(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public object endWhere(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

ifEnd(Boolean)​

View Source​
Declaration
public object ifEnd(bool test)
Returns​

System.Object

Parameters​
TypeName
System.Booleantest

ifEnd(Object, Boolean)​

View Source​
Declaration
public object ifEnd(object ignoreTarget, bool test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Booleantest

ifNotEnd(Boolean)​

View Source​
Declaration
public object ifNotEnd(bool test)
Returns​

System.Object

Parameters​
TypeName
System.Booleantest

ifNotEnd(Object, Boolean)​

View Source​
Declaration
public object ifNotEnd(object ignoreTarget, bool test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Booleantest

onlyIfNull(Object)​

View Source​
Declaration
public object onlyIfNull(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

onlyIfNull(Object, Object)​

View Source​
Declaration
public object onlyIfNull(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfNotNull(Object)​

View Source​
Declaration
public object onlyIfNotNull(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

onlyIfNotNull(Object, Object)​

View Source​
Declaration
public object onlyIfNotNull(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfExists(Object)​

View Source​
Declaration
public object onlyIfExists(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

onlyIfExists(Object, Object)​

View Source​
Declaration
public object onlyIfExists(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfEmpty(Object)​

View Source​
Declaration
public object onlyIfEmpty(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

onlyIfEmpty(Object, Object)​

View Source​
Declaration
public object onlyIfEmpty(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfNotEmpty(Object)​

View Source​
Declaration
public object onlyIfNotEmpty(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

onlyIfNotEmpty(Object, Object)​

View Source​
Declaration
public object onlyIfNotEmpty(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfFalsy(Object)​

View Source​
Declaration
public object onlyIfFalsy(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

onlyIfFalsy(Object, Object)​

View Source​
Declaration
public object onlyIfFalsy(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIfTruthy(Object)​

View Source​
Declaration
public object onlyIfTruthy(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

onlyIfTruthy(Object, Object)​

View Source​
Declaration
public object onlyIfTruthy(object ignoreTarget, object target)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttarget

onlyIf(Object)​

View Source​
Declaration
public object onlyIf(object test)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest

onlyIf(Object, Boolean)​

View Source​
Declaration
public object onlyIf(object returnTarget, bool test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Booleantest

onlyIfAny(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object onlyIfAny(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

onlyIfAll(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object onlyIfAll(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

onlyWhere(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object onlyWhere(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

onlyIfDebug(Object)​

View Source​
Declaration
public object onlyIfDebug(object returnTarget)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget

endIfDebug(Object)​

View Source​
Declaration
public object endIfDebug(object returnTarget)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget

onlyWhere(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public object onlyWhere(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

ifOnly(Boolean)​

View Source​
Declaration
public object ifOnly(bool test)
Returns​

System.Object

Parameters​
TypeName
System.Booleantest

ifOnly(Object, Boolean)​

View Source​
Declaration
public object ifOnly(object ignoreTarget, bool test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Booleantest

ifNotOnly(Boolean)​

View Source​
Declaration
public object ifNotOnly(bool test)
Returns​

System.Object

Parameters​
TypeName
System.Booleantest

ifNotOnly(Object, Boolean)​

View Source​
Declaration
public object ifNotOnly(object ignoreTarget, bool test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Booleantest

ifDo(Object)​

View Source​
Declaration
public object ifDo(object test)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest

ifDo(Object, Object)​

View Source​
Declaration
public object ifDo(object ignoreTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttest

doIf(Object)​

View Source​
Declaration
public object doIf(object test)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest

doIf(Object, Object)​

View Source​
Declaration
public object doIf(object ignoreTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objecttest

ifUse(Object, Object)​

View Source​
Declaration
public object ifUse(object test, object useValue)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest
System.ObjectuseValue

ifShow(Object, Object)​

View Source​
Declaration
public object ifShow(object test, object useValue)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest
System.ObjectuseValue

ifShowRaw(Object, Object)​

View Source​
Declaration
public object ifShowRaw(object test, object useValue)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest
System.ObjectuseValue

useIf(Object, Object)​

View Source​
Declaration
public object useIf(object useValue, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectuseValue
System.Objecttest

showIf(Object, Object)​

View Source​
Declaration
public object showIf(object useValue, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectuseValue
System.Objecttest

showIfExists(Object, Object)​

View Source​
Declaration
public object showIfExists(object useValue, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectuseValue
System.Objecttest

use(Object, Object)​

View Source​
Declaration
public object use(object ignoreTarget, object useValue)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.ObjectuseValue

show(Object, Object)​

View Source​
Declaration
public object show(object ignoreTarget, object useValue)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.ObjectuseValue

showRaw(Object, String)​

View Source​
Declaration
public IRawString showRaw(object ignoreTarget, string content)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringcontent

useFmt(Object, String, Object)​

View Source​
Declaration
public object useFmt(object ignoreTarget, string format, object arg)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg

useFmt(Object, String, Object, Object)​

View Source​
Declaration
public object useFmt(object ignoreTarget, string format, object arg1, object arg2)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2

useFmt(Object, String, Object, Object, Object)​

View Source​
Declaration
public object useFmt(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2
System.Objectarg3

useFormat(Object, Object, String)​

View Source​
Declaration
public object useFormat(object ignoreTarget, object arg, string fmt)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objectarg
System.Stringfmt

showFmt(Object, String, Object)​

View Source​
Declaration
public object showFmt(object ignoreTarget, string format, object arg)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg

showFmt(Object, String, Object, Object)​

View Source​
Declaration
public object showFmt(object ignoreTarget, string format, object arg1, object arg2)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2

showFmt(Object, String, Object, Object, Object)​

View Source​
Declaration
public object showFmt(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2
System.Objectarg3

showFormat(Object, Object, String)​

View Source​
Declaration
public object showFormat(object ignoreTarget, object arg, string fmt)
Returns​

System.Object

Parameters​
TypeName
System.ObjectignoreTarget
System.Objectarg
System.Stringfmt

showFmtRaw(Object, String, Object)​

View Source​
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg

showFmtRaw(Object, String, Object, Object)​

View Source​
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg1, object arg2)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2

showFmtRaw(Object, String, Object, Object, Object)​

View Source​
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.ObjectignoreTarget
System.Stringformat
System.Objectarg1
System.Objectarg2
System.Objectarg3

isString(Object)​

View Source​
Declaration
public bool isString(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isInt(Object)​

View Source​
Declaration
public bool isInt(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isLong(Object)​

View Source​
Declaration
public bool isLong(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isInteger(Object)​

View Source​
Declaration
public bool isInteger(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isDouble(Object)​

View Source​
Declaration
public bool isDouble(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isFloat(Object)​

View Source​
Declaration
public bool isFloat(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isDecimal(Object)​

View Source​
Declaration
public bool isDecimal(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isBool(Object)​

View Source​
Declaration
public bool isBool(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isList(Object)​

View Source​
Declaration
public bool isList(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isEnumerable(Object)​

View Source​
Declaration
public bool isEnumerable(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isDictionary(Object)​

View Source​
Declaration
public bool isDictionary(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isChar(Object)​

View Source​
Declaration
public bool isChar(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isChars(Object)​

View Source​
Declaration
public bool isChars(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isByte(Object)​

View Source​
Declaration
public bool isByte(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isBytes(Object)​

View Source​
Declaration
public bool isBytes(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isObjectDictionary(Object)​

View Source​
Declaration
public bool isObjectDictionary(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isStringDictionary(Object)​

View Source​
Declaration
public bool isStringDictionary(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isType(Object, String)​

View Source​
Declaration
public bool isType(object target, string typeName)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.StringtypeName

isNumber(Object)​

View Source​
Declaration
public bool isNumber(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isRealNumber(Object)​

View Source​
Declaration
public bool isRealNumber(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isEnum(Object)​

View Source​
Declaration
public bool isEnum(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isArray(Object)​

View Source​
Declaration
public bool isArray(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isAnonObject(Object)​

View Source​
Declaration
public bool isAnonObject(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isClass(Object)​

View Source​
Declaration
public bool isClass(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isValueType(Object)​

View Source​
Declaration
public bool isValueType(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isDto(Object)​

View Source​
Declaration
public bool isDto(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isTuple(Object)​

View Source​
Declaration
public bool isTuple(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

isKeyValuePair(Object)​

View Source​
Declaration
public bool isKeyValuePair(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

instanceOf(Object, Object)​

View Source​
Declaration
public bool instanceOf(object target, object type)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objecttype

length(Object)​

View Source​
Declaration
public int length(object target)
Returns​

System.Int32

Parameters​
TypeName
System.Objecttarget

hasMinCount(Object, Int32)​

View Source​
Declaration
public bool hasMinCount(object target, int minCount)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Int32minCount

hasMaxCount(Object, Int32)​

View Source​
Declaration
public bool hasMaxCount(object target, int maxCount)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Int32maxCount

OR(Object, Object)​

View Source​
Declaration
public bool OR(object lhs, object rhs)
Returns​

System.Boolean

Parameters​
TypeName
System.Objectlhs
System.Objectrhs

AND(Object, Object)​

View Source​
Declaration
public bool AND(object lhs, object rhs)
Returns​

System.Boolean

Parameters​
TypeName
System.Objectlhs
System.Objectrhs

equals(Object, Object)​

View Source​
Declaration
public bool equals(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

notEquals(Object, Object)​

View Source​
Declaration
public bool notEquals(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

greaterThan(Object, Object)​

View Source​
Declaration
public bool greaterThan(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

greaterThanEqual(Object, Object)​

View Source​
Declaration
public bool greaterThanEqual(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

lessThan(Object, Object)​

View Source​
Declaration
public bool lessThan(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

lessThanEqual(Object, Object)​

View Source​
Declaration
public bool lessThanEqual(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

not(Boolean)​

View Source​
Declaration
public bool not(bool target)
Returns​

System.Boolean

Parameters​
TypeName
System.Booleantarget

eq(Object, Object)​

View Source​
Declaration
public bool eq(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

not(Object, Object)​

View Source​
Declaration
public bool not(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

gt(Object, Object)​

View Source​
Declaration
public bool gt(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

gte(Object, Object)​

View Source​
Declaration
public bool gte(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

lt(Object, Object)​

View Source​
Declaration
public bool lt(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

lte(Object, Object)​

View Source​
Declaration
public bool lte(object target, object other)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectother

echo(Object)​

View Source​
Declaration
public object echo(object value)
Returns​

System.Object

Parameters​
TypeName
System.Objectvalue

pass(String)​

View Source​
Declaration
public IRawString pass(string target)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Stringtarget

join(IEnumerable<Object>)​

View Source​
Declaration
public string join(IEnumerable<object> values)
Returns​

System.String

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>values

joinln(IEnumerable<Object>)​

View Source​
Declaration
public string joinln(IEnumerable<object> values)
Returns​

System.String

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>values

join(IEnumerable<Object>, String)​

View Source​
Declaration
public string join(IEnumerable<object> values, string delimiter)
Returns​

System.String

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>values
System.Stringdelimiter

reverse(ScriptScopeContext, IEnumerable<Object>)​

View Source​
Declaration
public IEnumerable<object> reverse(ScriptScopeContext scope, IEnumerable<object> original)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.Generic.IEnumerable<System.Object>original

keyValuePair(String, Object)​

View Source​
Declaration
public KeyValuePair<string, object> keyValuePair(string key, object value)
Returns​

System.Collections.Generic.KeyValuePair<System.String,System.Object>

Parameters​
TypeName
System.Stringkey
System.Objectvalue

prependTo(ScriptScopeContext, String, Object)​

View Source​
Declaration
public IgnoreResult prependTo(ScriptScopeContext scope, string value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringvalue
System.ObjectargExpr

prependToGlobal(ScriptScopeContext, String, Object)​

View Source​
Declaration
public IgnoreResult prependToGlobal(ScriptScopeContext scope, string value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringvalue
System.ObjectargExpr

appendTo(ScriptScopeContext, String, Object)​

View Source​
Declaration
public IgnoreResult appendTo(ScriptScopeContext scope, string value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringvalue
System.ObjectargExpr

appendToGlobal(ScriptScopeContext, String, Object)​

View Source​
Declaration
public IgnoreResult appendToGlobal(ScriptScopeContext scope, string value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringvalue
System.ObjectargExpr

addToStart(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IgnoreResult addToStart(ScriptScopeContext scope, object value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

addToStartGlobal(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IgnoreResult addToStartGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

addTo(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IgnoreResult addTo(ScriptScopeContext scope, object value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

addToGlobal(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IgnoreResult addToGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

addItem(Object, Object)​

View Source​
Declaration
public object addItem(object collection, object value)
Returns​

System.Object

Parameters​
TypeName
System.Objectcollection
System.Objectvalue

putItem(IDictionary, Object, Object)​

Puts value in dictionary at key

View Source​
Declaration
public object putItem(IDictionary dictionary, object key, object value)
Returns​

System.Object: value

Parameters​
TypeName
System.Collections.IDictionarydictionary
System.Objectkey
System.Objectvalue

resolveArg(ScriptScopeContext, String)​

View Source​
Declaration
public object resolveArg(ScriptScopeContext scope, string name)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

resolveGlobal(ScriptScopeContext, String)​

View Source​
Declaration
public object resolveGlobal(ScriptScopeContext scope, string name)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

resolvePageArg(ScriptScopeContext, String)​

View Source​
Declaration
public object resolvePageArg(ScriptScopeContext scope, string name)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

resolveContextArg(ScriptScopeContext, String)​

View Source​
Declaration
public object resolveContextArg(ScriptScopeContext scope, string name)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

assign(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object assign(ScriptScopeContext scope, string argExpr, object value)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringargExpr
System.Objectvalue

assignGlobal(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object assignGlobal(ScriptScopeContext scope, string argExpr, object value)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringargExpr
System.Objectvalue

to(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IgnoreResult to(ScriptScopeContext scope, object value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

assignTo(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IgnoreResult assignTo(ScriptScopeContext scope, object value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

toGlobal(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IgnoreResult toGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

assignToGlobal(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IgnoreResult assignToGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue
System.ObjectargExpr

to(ScriptScopeContext, Object)​

View Source​
Declaration
public Task to(ScriptScopeContext scope, object argExpr)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectargExpr

assignTo(ScriptScopeContext, Object)​

View Source​
Declaration
public Task assignTo(ScriptScopeContext scope, object argExpr)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectargExpr

toGlobal(ScriptScopeContext, Object)​

View Source​
Declaration
public Task toGlobal(ScriptScopeContext scope, object argExpr)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectargExpr

assignToGlobal(ScriptScopeContext, Object)​

View Source​
Declaration
public Task assignToGlobal(ScriptScopeContext scope, object argExpr)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectargExpr

GetVarNameFromStringOrArrowExpression(String, Object)​

View Source​
Declaration
public static string GetVarNameFromStringOrArrowExpression(string filterName, object argExpr)
Returns​

System.String

Parameters​
TypeName
System.StringfilterName
System.ObjectargExpr

buffer(ScriptScopeContext, Object)​

View Source​
Declaration
public Task buffer(ScriptScopeContext scope, object target)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

partial(ScriptScopeContext, Object)​

View Source​
Declaration
public Task partial(ScriptScopeContext scope, object target)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

partial(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public async Task partial(ScriptScopeContext scope, object target, object scopedParams)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.ObjectscopedParams

selectEach(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public Task selectEach(ScriptScopeContext scope, object target, object items)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectitems

selectEach(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public async Task selectEach(ScriptScopeContext scope, object target, object items, object scopeOptions)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectitems
System.ObjectscopeOptions

toString(Object)​

View Source​
Declaration
public string toString(object target)
Returns​

System.String

Parameters​
TypeName
System.Objecttarget

asString(Object)​

View Source​
Declaration
public string asString(object target)
Returns​

System.String

Parameters​
TypeName
System.Objecttarget

toList(IEnumerable)​

View Source​
Declaration
public List<object> toList(IEnumerable target)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IEnumerabletarget

toStringList(IEnumerable)​

View Source​
Declaration
public List<string> toStringList(IEnumerable target)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Collections.IEnumerabletarget

toArray(IEnumerable)​

View Source​
Declaration
public object[] toArray(IEnumerable target)
Returns​

System.Object[]

Parameters​
TypeName
System.Collections.IEnumerabletarget

fromCharCode(Int32)​

View Source​
Declaration
public char fromCharCode(int charCode)
Returns​

System.Char

Parameters​
TypeName
System.Int32charCode

toChar(Object)​

View Source​
Declaration
public char toChar(object target)
Returns​

System.Char

Parameters​
TypeName
System.Objecttarget

toChars(Object)​

View Source​
Declaration
public char[] toChars(object target)
Returns​

System.Char[]

Parameters​
TypeName
System.Objecttarget

toCharCode(Object)​

View Source​
Declaration
public int toCharCode(object target)
Returns​

System.Int32

Parameters​
TypeName
System.Objecttarget

toUtf8Bytes(String)​

View Source​
Declaration
public byte[] toUtf8Bytes(string target)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringtarget

fromUtf8Bytes(Byte[])​

View Source​
Declaration
public string fromUtf8Bytes(byte[] target)
Returns​

System.String

Parameters​
TypeName
System.Byte[]target

toByte(Object)​

View Source​
Declaration
public byte toByte(object target)
Returns​

System.Byte

Parameters​
TypeName
System.Objecttarget

toInt(Object)​

View Source​
Declaration
public int toInt(object target)
Returns​

System.Int32

Parameters​
TypeName
System.Objecttarget

toLong(Object)​

View Source​
Declaration
public long toLong(object target)
Returns​

System.Int64

Parameters​
TypeName
System.Objecttarget

toFloat(Object)​

View Source​
Declaration
public float toFloat(object target)
Returns​

System.Single

Parameters​
TypeName
System.Objecttarget

toDouble(Object)​

View Source​
Declaration
public double toDouble(object target)
Returns​

System.Double

Parameters​
TypeName
System.Objecttarget

toDecimal(Object)​

View Source​
Declaration
public decimal toDecimal(object target)
Returns​

System.Decimal

Parameters​
TypeName
System.Objecttarget

toBool(Object)​

View Source​
Declaration
public bool toBool(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

toDateTime(Object)​

View Source​
Declaration
public DateTime toDateTime(object target)
Returns​

System.DateTime

Parameters​
TypeName
System.Objecttarget

date(Int32, Int32, Int32)​

View Source​
Declaration
public DateTime date(int year, int month, int day)
Returns​

System.DateTime

Parameters​
TypeName
System.Int32year
System.Int32month
System.Int32day

date(Int32, Int32, Int32, Int32, Int32, Int32)​

View Source​
Declaration
public DateTime date(int year, int month, int day, int hour, int min, int secs)
Returns​

System.DateTime

Parameters​
TypeName
System.Int32year
System.Int32month
System.Int32day
System.Int32hour
System.Int32min
System.Int32secs

toTimeSpan(Object)​

View Source​
Declaration
public TimeSpan toTimeSpan(object target)
Returns​

System.TimeSpan

Parameters​
TypeName
System.Objecttarget

time(Int32, Int32, Int32)​

View Source​
Declaration
public TimeSpan time(int hours, int mins, int secs)
Returns​

System.TimeSpan

Parameters​
TypeName
System.Int32hours
System.Int32mins
System.Int32secs

time(Int32, Int32, Int32, Int32)​

View Source​
Declaration
public TimeSpan time(int days, int hours, int mins, int secs)
Returns​

System.TimeSpan

Parameters​
TypeName
System.Int32days
System.Int32hours
System.Int32mins
System.Int32secs

pair(String, Object)​

View Source​
Declaration
public KeyValuePair<string, object> pair(string key, object value)
Returns​

System.Collections.Generic.KeyValuePair<System.String,System.Object>

Parameters​
TypeName
System.Stringkey
System.Objectvalue

toKeys(Object)​

View Source​
Declaration
public List<string> toKeys(object target)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Objecttarget

toValues(Object)​

View Source​
Declaration
public List<object> toValues(object target)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Objecttarget

toObjectDictionary(Object)​

View Source​
Declaration
public Dictionary<string, object> toObjectDictionary(object target)
Returns​

System.Collections.Generic.Dictionary<System.String,System.Object>

Parameters​
TypeName
System.Objecttarget

toStringDictionary(IDictionary)​

View Source​
Declaration
public Dictionary<string, string> toStringDictionary(IDictionary map)
Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters​
TypeName
System.Collections.IDictionarymap

splitStringList(IEnumerable)​

View Source​
Declaration
public List<string> splitStringList(IEnumerable strings)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Collections.IEnumerablestrings

toVarNames(IEnumerable)​

View Source​
Declaration
public List<string> toVarNames(IEnumerable names)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Collections.IEnumerablenames

AssertWithinMaxQuota(Int32)​

View Source​
Declaration
public int AssertWithinMaxQuota(int value)
Returns​

System.Int32

Parameters​
TypeName
System.Int32value

toDictionary(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public Dictionary<object, object> toDictionary(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.Dictionary<System.Object,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

toDictionary(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public Dictionary<object, object> toDictionary(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.Dictionary<System.Object,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

typeName(Object)​

View Source​
Declaration
public IRawString typeName(object target)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objecttarget

typeFullName(Object)​

View Source​
Declaration
public IRawString typeFullName(object target)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objecttarget

of(ScriptScopeContext, IEnumerable, Object)​

View Source​
Declaration
public IEnumerable of(ScriptScopeContext scope, IEnumerable target, object scopeOptions)
Returns​

System.Collections.IEnumerable

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IEnumerabletarget
System.ObjectscopeOptions

do(ScriptScopeContext, Object)​

View Source​
Declaration
public object do(ScriptScopeContext scope, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectexpression

do(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public Task do(ScriptScopeContext scope, object target, object expression)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

do(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public Task do(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

props(Object)​

View Source​
Declaration
public List<string> props(object o)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Objecto

propTypes(Object)​

View Source​
Declaration
public PropertyInfo[] propTypes(object o)
Returns​

System.Reflection.PropertyInfo[]

Parameters​
TypeName
System.Objecto

staticProps(Object)​

View Source​
Declaration
public List<string> staticProps(object o)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Objecto

staticPropTypes(Object)​

View Source​
Declaration
public PropertyInfo[] staticPropTypes(object o)
Returns​

System.Reflection.PropertyInfo[]

Parameters​
TypeName
System.Objecto

fields(Object)​

View Source​
Declaration
public List<string> fields(object o)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Objecto

fieldTypes(Object)​

View Source​
Declaration
public FieldInfo[] fieldTypes(object o)
Returns​

System.Reflection.FieldInfo[]

Parameters​
TypeName
System.Objecto

staticFields(Object)​

View Source​
Declaration
public List<string> staticFields(object o)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Objecto

staticFieldTypes(Object)​

View Source​
Declaration
public FieldInfo[] staticFieldTypes(object o)
Returns​

System.Reflection.FieldInfo[]

Parameters​
TypeName
System.Objecto

property(Object, String)​

View Source​
Declaration
public object property(object target, string propertyName)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget
System.StringpropertyName

field(Object, String)​

View Source​
Declaration
public object field(object target, string fieldName)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget
System.StringfieldName

map(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object map(ScriptScopeContext scope, object items, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems
System.Objectexpression

map(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public object map(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

scopeVars(Object)​

View Source​
Declaration
public object scopeVars(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

selectFields(Object, Object)​

View Source​
Declaration
public object selectFields(object target, object names)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget
System.Objectnames

select(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public Task select(ScriptScopeContext scope, object target, object selectTemplate)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.ObjectselectTemplate

select(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public async Task select(ScriptScopeContext scope, object target, object selectTemplate, object scopeOptions)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.ObjectselectTemplate
System.ObjectscopeOptions

selectPartial(ScriptScopeContext, Object, String)​

View Source​
Declaration
public Task selectPartial(ScriptScopeContext scope, object target, string pageName)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.StringpageName

selectPartial(ScriptScopeContext, Object, String, Object)​

View Source​
Declaration
public async Task selectPartial(ScriptScopeContext scope, object target, string pageName, object scopedParams)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.StringpageName
System.ObjectscopedParams

removeKeyFromDictionary(IDictionary, Object)​

View Source​
Declaration
public object removeKeyFromDictionary(IDictionary dictionary, object keyToRemove)
Returns​

System.Object

Parameters​
TypeName
System.Collections.IDictionarydictionary
System.ObjectkeyToRemove

remove(Object, Object)​

View Source​
Declaration
public object remove(object target, object keysToRemove)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget
System.ObjectkeysToRemove

withoutNullValues(Object)​

View Source​
Declaration
public object withoutNullValues(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

withoutEmptyValues(Object)​

View Source​
Declaration
public object withoutEmptyValues(object target)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget

withKeys(IDictionary<String, Object>, Object)​

View Source​
Declaration
public object withKeys(IDictionary<string, object> target, object keys)
Returns​

System.Object

Parameters​
TypeName
System.Collections.Generic.IDictionary<System.String,System.Object>target
System.Objectkeys

ownProps(IEnumerable<KeyValuePair<String, Object>>)​

View Source​
Declaration
public object ownProps(IEnumerable<KeyValuePair<string, object>> target)
Returns​

System.Object

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>>target

withoutKeys(IDictionary<String, Object>, Object)​

View Source​
Declaration
public object withoutKeys(IDictionary<string, object> target, object keys)
Returns​

System.Object

Parameters​
TypeName
System.Collections.Generic.IDictionary<System.String,System.Object>target
System.Objectkeys

merge(Object)​

View Source​
Declaration
public object merge(object sources)
Returns​

System.Object

Parameters​
TypeName
System.Objectsources

merge(IDictionary<String, Object>, Object)​

View Source​
Declaration
public object merge(IDictionary<string, object> target, object sources)
Returns​

System.Object

Parameters​
TypeName
System.Collections.Generic.IDictionary<System.String,System.Object>target
System.Objectsources

dirPath(String)​

View Source​
Declaration
public string dirPath(string filePath)
Returns​

System.String

Parameters​
TypeName
System.StringfilePath

resolveAsset(ScriptScopeContext, String)​

View Source​
Declaration
public string resolveAsset(ScriptScopeContext scope, string virtualPath)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringvirtualPath

evalTemplate(ScriptScopeContext, String)​

View Source​
Declaration
[Obsolete("Use evalScript")]
public Task<object> evalTemplate(ScriptScopeContext scope, string source)
Returns​

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

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringsource

evalTemplate(ScriptScopeContext, String, Dictionary<String, Object>)​

View Source​
Declaration
[Obsolete("Use evalScript")]
public Task<object> evalTemplate(ScriptScopeContext scope, string source, Dictionary<string, object> args)
Returns​

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

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringsource
System.Collections.Generic.Dictionary<System.String,System.Object>args

evalScript(ScriptScopeContext, String)​

View Source​
Declaration
public Task<object> evalScript(ScriptScopeContext scope, string source)
Returns​

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

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringsource

evalScript(ScriptScopeContext, String, Dictionary<String, Object>)​

View Source​
Declaration
public async Task<object> evalScript(ScriptScopeContext scope, string source, Dictionary<string, object> args)
Returns​

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

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringsource
System.Collections.Generic.Dictionary<System.String,System.Object>args

write(ScriptScopeContext, Object)​

View Source​
Declaration
public IgnoreResult write(ScriptScopeContext scope, object value)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue

writeln(ScriptScopeContext, Object)​

View Source​
Declaration
public IgnoreResult writeln(ScriptScopeContext scope, object value)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue

unwrap(Object)​

View Source​
Declaration
public object unwrap(object value)
Returns​

System.Object

Parameters​
TypeName
System.Objectvalue

sync(Object)​

View Source​
Declaration
public object sync(object value)
Returns​

System.Object

Parameters​
TypeName
System.Objectvalue

if(Object)​

View Source​
Declaration
public object if(object test)
Returns​

System.Object

Parameters​
TypeName
System.Objecttest

if(Object, Object)​

View Source​
Declaration
public object if(object returnTarget, object test)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.Objecttest

default(Object, Object)​

View Source​
Declaration
public object default(object returnTarget, object elseReturn)
Returns​

System.Object

Parameters​
TypeName
System.ObjectreturnTarget
System.ObjectelseReturn

throw(ScriptScopeContext, String)​

View Source​
Declaration
public object throw(ScriptScopeContext scope, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage

throw(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object throw(ScriptScopeContext scope, string message, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Objectoptions

return(ScriptScopeContext)​

View Source​
Declaration
public StopExecution return(ScriptScopeContext scope)
Returns​

ServiceStack.Script.StopExecution

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

return(ScriptScopeContext, Object)​

View Source​
Declaration
public StopExecution return(ScriptScopeContext scope, object returnValue)
Returns​

ServiceStack.Script.StopExecution

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectreturnValue

return(ScriptScopeContext, Object, Dictionary<String, Object>)​

View Source​
Declaration
public StopExecution return(ScriptScopeContext scope, object returnValue, Dictionary<string, object> returnArgs)
Returns​

ServiceStack.Script.StopExecution

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectreturnValue
System.Collections.Generic.Dictionary<System.String,System.Object>returnArgs

assignError(ScriptScopeContext, String)​

View Source​
Declaration
public object assignError(ScriptScopeContext scope, string errorBinding)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringerrorBinding

catchError(ScriptScopeContext, String)​

View Source​
Declaration
public object catchError(ScriptScopeContext scope, string errorBinding)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringerrorBinding

assignErrorAndContinueExecuting(ScriptScopeContext, String)​

View Source​
Declaration
public object assignErrorAndContinueExecuting(ScriptScopeContext scope, string errorBinding)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringerrorBinding

continueExecutingFiltersOnError(ScriptScopeContext, Object)​

View Source​
Declaration
public object continueExecutingFiltersOnError(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

continueExecutingFiltersOnError(ScriptScopeContext)​

View Source​
Declaration
public object continueExecutingFiltersOnError(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

skipExecutingFiltersOnError(ScriptScopeContext, Object)​

View Source​
Declaration
public object skipExecutingFiltersOnError(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

skipExecutingFiltersOnError(ScriptScopeContext)​

View Source​
Declaration
public object skipExecutingFiltersOnError(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

endIfError(ScriptScopeContext)​

View Source​
Declaration
public object endIfError(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

endIfError(ScriptScopeContext, Object)​

View Source​
Declaration
public object endIfError(ScriptScopeContext scope, object value)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue

ifNoError(ScriptScopeContext)​

View Source​
Declaration
public object ifNoError(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

ifNoError(ScriptScopeContext, Object)​

View Source​
Declaration
public object ifNoError(ScriptScopeContext scope, object value)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectvalue

ifError(ScriptScopeContext, Object)​

View Source​
Declaration
public object ifError(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

ifError(ScriptScopeContext)​

View Source​
Declaration
public object ifError(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

ifDebug(ScriptScopeContext, Object)​

View Source​
Declaration
public object ifDebug(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

ifDebug(ScriptScopeContext)​

View Source​
Declaration
public object ifDebug(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

debugMode(ScriptScopeContext)​

View Source​
Declaration
public object debugMode(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

hasError(ScriptScopeContext)​

View Source​
Declaration
public bool hasError(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

lastError(ScriptScopeContext)​

View Source​
Declaration
public Exception lastError(ScriptScopeContext scope)
Returns​

System.Exception

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

lastErrorMessage(ScriptScopeContext)​

View Source​
Declaration
public string lastErrorMessage(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

lastErrorStackTrace(ScriptScopeContext)​

View Source​
Declaration
public string lastErrorStackTrace(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

ensureAllArgsNotNull(ScriptScopeContext, Object)​

View Source​
Declaration
public object ensureAllArgsNotNull(ScriptScopeContext scope, object args)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectargs

ensureAllArgsNotNull(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object ensureAllArgsNotNull(ScriptScopeContext scope, object args, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectargs
System.Objectoptions

ensureAnyArgsNotNull(ScriptScopeContext, Object)​

View Source​
Declaration
public object ensureAnyArgsNotNull(ScriptScopeContext scope, object args)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectargs

ensureAnyArgsNotNull(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object ensureAnyArgsNotNull(ScriptScopeContext scope, object args, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectargs
System.Objectoptions

ensureAllArgsNotEmpty(ScriptScopeContext, Object)​

View Source​
Declaration
public object ensureAllArgsNotEmpty(ScriptScopeContext scope, object args)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectargs

ensureAllArgsNotEmpty(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object ensureAllArgsNotEmpty(ScriptScopeContext scope, object args, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectargs
System.Objectoptions

ensureAnyArgsNotEmpty(ScriptScopeContext, Object)​

View Source​
Declaration
public object ensureAnyArgsNotEmpty(ScriptScopeContext scope, object args)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectargs

ensureAnyArgsNotEmpty(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object ensureAnyArgsNotEmpty(ScriptScopeContext scope, object args, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectargs
System.Objectoptions

ifThrow(ScriptScopeContext, Boolean, String)​

View Source​
Declaration
public object ifThrow(ScriptScopeContext scope, bool test, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Booleantest
System.Stringmessage

ifThrow(ScriptScopeContext, Boolean, String, Object)​

View Source​
Declaration
public object ifThrow(ScriptScopeContext scope, bool test, string message, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Booleantest
System.Stringmessage
System.Objectoptions

throwIf(ScriptScopeContext, String, Boolean)​

View Source​
Declaration
public object throwIf(ScriptScopeContext scope, string message, bool test)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Booleantest

throwIf(ScriptScopeContext, String, Boolean, Object)​

View Source​
Declaration
public object throwIf(ScriptScopeContext scope, string message, bool test, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Booleantest
System.Objectoptions

ifThrowArgumentException(ScriptScopeContext, Boolean, String)​

View Source​
Declaration
public object ifThrowArgumentException(ScriptScopeContext scope, bool test, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Booleantest
System.Stringmessage

ifThrowArgumentException(ScriptScopeContext, Boolean, String, Object)​

View Source​
Declaration
public object ifThrowArgumentException(ScriptScopeContext scope, bool test, string message, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Booleantest
System.Stringmessage
System.Objectoptions

ifThrowArgumentException(ScriptScopeContext, Boolean, String, String, Object)​

View Source​
Declaration
public object ifThrowArgumentException(ScriptScopeContext scope, bool test, string message, string paramName, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Booleantest
System.Stringmessage
System.StringparamName
System.Objectoptions

ifThrowArgumentNullException(ScriptScopeContext, Boolean, String)​

View Source​
Declaration
public object ifThrowArgumentNullException(ScriptScopeContext scope, bool test, string paramName)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Booleantest
System.StringparamName

ifThrowArgumentNullException(ScriptScopeContext, Boolean, String, Object)​

View Source​
Declaration
public object ifThrowArgumentNullException(ScriptScopeContext scope, bool test, string paramName, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Booleantest
System.StringparamName
System.Objectoptions

throwArgumentNullExceptionIf(ScriptScopeContext, String, Boolean)​

View Source​
Declaration
public object throwArgumentNullExceptionIf(ScriptScopeContext scope, string paramName, bool test)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringparamName
System.Booleantest

throwArgumentNullExceptionIf(ScriptScopeContext, String, Boolean, Object)​

View Source​
Declaration
public object throwArgumentNullExceptionIf(ScriptScopeContext scope, string paramName, bool test, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringparamName
System.Booleantest
System.Objectoptions

throwArgumentException(ScriptScopeContext, String)​

View Source​
Declaration
public object throwArgumentException(ScriptScopeContext scope, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage

throwArgumentException(ScriptScopeContext, String, String)​

View Source​
Declaration
public object throwArgumentException(ScriptScopeContext scope, string message, string options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Stringoptions

throwArgumentNullException(ScriptScopeContext, String)​

View Source​
Declaration
public object throwArgumentNullException(ScriptScopeContext scope, string paramName)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringparamName

throwArgumentNullException(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object throwArgumentNullException(ScriptScopeContext scope, string paramName, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringparamName
System.Objectoptions

throwNotSupportedException(ScriptScopeContext, String)​

View Source​
Declaration
public object throwNotSupportedException(ScriptScopeContext scope, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage

throwNotSupportedException(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object throwNotSupportedException(ScriptScopeContext scope, string message, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Objectoptions

throwNotImplementedException(ScriptScopeContext, String)​

View Source​
Declaration
public object throwNotImplementedException(ScriptScopeContext scope, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage

throwNotImplementedException(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object throwNotImplementedException(ScriptScopeContext scope, string message, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Objectoptions

throwUnauthorizedAccessException(ScriptScopeContext, String)​

View Source​
Declaration
public object throwUnauthorizedAccessException(ScriptScopeContext scope, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage

throwUnauthorizedAccessException(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object throwUnauthorizedAccessException(ScriptScopeContext scope, string message, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Objectoptions

throwFileNotFoundException(ScriptScopeContext, String)​

View Source​
Declaration
public object throwFileNotFoundException(ScriptScopeContext scope, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage

throwFileNotFoundException(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object throwFileNotFoundException(ScriptScopeContext scope, string message, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Objectoptions

throwOptimisticConcurrencyException(ScriptScopeContext, String)​

View Source​
Declaration
public object throwOptimisticConcurrencyException(ScriptScopeContext scope, string message)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage

throwOptimisticConcurrencyException(ScriptScopeContext, String, Object)​

View Source​
Declaration
public object throwOptimisticConcurrencyException(ScriptScopeContext scope, string message, object options)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Objectoptions

throwAsync(ScriptScopeContext, String)​

View Source​
Declaration
public async Task<object> throwAsync(ScriptScopeContext scope, string message)
Returns​

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

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage

throwAsync(ScriptScopeContext, String, Object)​

View Source​
Declaration
public async Task<object> throwAsync(ScriptScopeContext scope, string message, object options)
Returns​

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

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringmessage
System.Objectoptions

add(Object, Object)​

View Source​
Declaration
public object add(object lhs, object rhs)
Returns​

System.Object

Parameters​
TypeName
System.Objectlhs
System.Objectrhs

sub(Object, Object)​

View Source​
Declaration
public object sub(object lhs, object rhs)
Returns​

System.Object

Parameters​
TypeName
System.Objectlhs
System.Objectrhs

subtract(Object, Object)​

View Source​
Declaration
public object subtract(object lhs, object rhs)
Returns​

System.Object

Parameters​
TypeName
System.Objectlhs
System.Objectrhs

mul(Object, Object)​

View Source​
Declaration
public object mul(object lhs, object rhs)
Returns​

System.Object

Parameters​
TypeName
System.Objectlhs
System.Objectrhs

multiply(Object, Object)​

View Source​
Declaration
public object multiply(object lhs, object rhs)
Returns​

System.Object

Parameters​
TypeName
System.Objectlhs
System.Objectrhs

div(Double, Double)​

View Source​
Declaration
public double div(double lhs, double rhs)
Returns​

System.Double

Parameters​
TypeName
System.Doublelhs
System.Doublerhs

divide(Double, Double)​

View Source​
Declaration
public double divide(double lhs, double rhs)
Returns​

System.Double

Parameters​
TypeName
System.Doublelhs
System.Doublerhs

incr(Int64)​

View Source​
Declaration
public long incr(long value)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value

increment(Int64)​

View Source​
Declaration
public long increment(long value)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value

incrBy(Int64, Int64)​

View Source​
Declaration
public long incrBy(long value, long by)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value
System.Int64by

incrementBy(Int64, Int64)​

View Source​
Declaration
public long incrementBy(long value, long by)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value
System.Int64by

decr(Int64)​

View Source​
Declaration
public long decr(long value)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value

decrement(Int64)​

View Source​
Declaration
public long decrement(long value)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value

decrBy(Int64, Int64)​

View Source​
Declaration
public long decrBy(long value, long by)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value
System.Int64by

decrementBy(Int64, Int64)​

View Source​
Declaration
public long decrementBy(long value, long by)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value
System.Int64by

mod(Int64, Int64)​

View Source​
Declaration
public long mod(long value, long divisor)
Returns​

System.Int64

Parameters​
TypeName
System.Int64value
System.Int64divisor

pi()​

View Source​
Declaration
public double pi()
Returns​

System.Double

e()​

View Source​
Declaration
public double e()
Returns​

System.Double

floor(Double)​

View Source​
Declaration
public double floor(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

ceiling(Double)​

View Source​
Declaration
public double ceiling(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

abs(Double)​

View Source​
Declaration
public double abs(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

acos(Double)​

View Source​
Declaration
public double acos(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

atan(Double)​

View Source​
Declaration
public double atan(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

atan2(Double, Double)​

View Source​
Declaration
public double atan2(double y, double x)
Returns​

System.Double

Parameters​
TypeName
System.Doubley
System.Doublex

cos(Double)​

View Source​
Declaration
public double cos(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

exp(Double)​

View Source​
Declaration
public double exp(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

log(Double)​

View Source​
Declaration
public double log(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

log(Double, Double)​

View Source​
Declaration
public double log(double a, double newBase)
Returns​

System.Double

Parameters​
TypeName
System.Doublea
System.DoublenewBase

log2(Double)​

View Source​
Declaration
public double log2(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

log10(Double)​

View Source​
Declaration
public double log10(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

pow(Double, Double)​

View Source​
Declaration
public double pow(double x, double y)
Returns​

System.Double

Parameters​
TypeName
System.Doublex
System.Doubley

round(Double)​

View Source​
Declaration
public double round(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

round(Double, Int32)​

View Source​
Declaration
public double round(double value, int decimals)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue
System.Int32decimals

sign(Double)​

View Source​
Declaration
public int sign(double value)
Returns​

System.Int32

Parameters​
TypeName
System.Doublevalue

sin(Double)​

View Source​
Declaration
public double sin(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

sinh(Double)​

View Source​
Declaration
public double sinh(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

sqrt(Double)​

View Source​
Declaration
public double sqrt(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

tan(Double)​

View Source​
Declaration
public double tan(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

tanh(Double)​

View Source​
Declaration
public double tanh(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

truncate(Double)​

View Source​
Declaration
public double truncate(double value)
Returns​

System.Double

Parameters​
TypeName
System.Doublevalue

intAdd(Int32, Int32)​

View Source​
Declaration
public int intAdd(int lhs, int rhs)
Returns​

System.Int32

Parameters​
TypeName
System.Int32lhs
System.Int32rhs

intSub(Int32, Int32)​

View Source​
Declaration
public int intSub(int lhs, int rhs)
Returns​

System.Int32

Parameters​
TypeName
System.Int32lhs
System.Int32rhs

intMul(Int32, Int32)​

View Source​
Declaration
public int intMul(int lhs, int rhs)
Returns​

System.Int32

Parameters​
TypeName
System.Int32lhs
System.Int32rhs

intDiv(Int32, Int32)​

View Source​
Declaration
public int intDiv(int lhs, int rhs)
Returns​

System.Int32

Parameters​
TypeName
System.Int32lhs
System.Int32rhs

longAdd(Int64, Int64)​

View Source​
Declaration
public long longAdd(long lhs, long rhs)
Returns​

System.Int64

Parameters​
TypeName
System.Int64lhs
System.Int64rhs

longSub(Int64, Int64)​

View Source​
Declaration
public long longSub(long lhs, long rhs)
Returns​

System.Int64

Parameters​
TypeName
System.Int64lhs
System.Int64rhs

longMul(Int64, Int64)​

View Source​
Declaration
public long longMul(long lhs, long rhs)
Returns​

System.Int64

Parameters​
TypeName
System.Int64lhs
System.Int64rhs

longDiv(Int64, Int64)​

View Source​
Declaration
public long longDiv(long lhs, long rhs)
Returns​

System.Int64

Parameters​
TypeName
System.Int64lhs
System.Int64rhs

doubleAdd(Double, Double)​

View Source​
Declaration
public double doubleAdd(double lhs, double rhs)
Returns​

System.Double

Parameters​
TypeName
System.Doublelhs
System.Doublerhs

doubleSub(Double, Double)​

View Source​
Declaration
public double doubleSub(double lhs, double rhs)
Returns​

System.Double

Parameters​
TypeName
System.Doublelhs
System.Doublerhs

doubleMul(Double, Double)​

View Source​
Declaration
public double doubleMul(double lhs, double rhs)
Returns​

System.Double

Parameters​
TypeName
System.Doublelhs
System.Doublerhs

doubleDiv(Double, Double)​

View Source​
Declaration
public double doubleDiv(double lhs, double rhs)
Returns​

System.Double

Parameters​
TypeName
System.Doublelhs
System.Doublerhs

decimalAdd(Decimal, Decimal)​

View Source​
Declaration
public decimal decimalAdd(decimal lhs, decimal rhs)
Returns​

System.Decimal

Parameters​
TypeName
System.Decimallhs
System.Decimalrhs

decimalSub(Decimal, Decimal)​

View Source​
Declaration
public decimal decimalSub(decimal lhs, decimal rhs)
Returns​

System.Decimal

Parameters​
TypeName
System.Decimallhs
System.Decimalrhs

decimalMul(Decimal, Decimal)​

View Source​
Declaration
public decimal decimalMul(decimal lhs, decimal rhs)
Returns​

System.Decimal

Parameters​
TypeName
System.Decimallhs
System.Decimalrhs

decimalDiv(Decimal, Decimal)​

View Source​
Declaration
public decimal decimalDiv(decimal lhs, decimal rhs)
Returns​

System.Decimal

Parameters​
TypeName
System.Decimallhs
System.Decimalrhs

step(IEnumerable, Object)​

View Source​
Declaration
public List<object> step(IEnumerable target, object scopeOptions)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Collections.IEnumerabletarget
System.ObjectscopeOptions

elementAt(IEnumerable, Int32)​

View Source​
Declaration
public object elementAt(IEnumerable target, int index)
Returns​

System.Object

Parameters​
TypeName
System.Collections.IEnumerabletarget
System.Int32index

contains(Object, Object)​

View Source​
Declaration
public bool contains(object target, object needle)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Objectneedle

sequenceEquals(IEnumerable, IEnumerable)​

View Source​
Declaration
public bool sequenceEquals(IEnumerable a, IEnumerable b)
Returns​

System.Boolean

Parameters​
TypeName
System.Collections.IEnumerablea
System.Collections.IEnumerableb

take(ScriptScopeContext, IEnumerable<Object>, Object)​

View Source​
Declaration
public IEnumerable<object> take(ScriptScopeContext scope, IEnumerable<object> original, object countOrBinding)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.Generic.IEnumerable<System.Object>original
System.ObjectcountOrBinding

skip(ScriptScopeContext, IEnumerable<Object>, Object)​

View Source​
Declaration
public IEnumerable<object> skip(ScriptScopeContext scope, IEnumerable<object> original, object countOrBinding)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.Generic.IEnumerable<System.Object>original
System.ObjectcountOrBinding

limit(ScriptScopeContext, IEnumerable<Object>, Object, Object)​

View Source​
Declaration
public IEnumerable<object> limit(ScriptScopeContext scope, IEnumerable<object> original, object skipOrBinding, object takeOrBinding)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.Generic.IEnumerable<System.Object>original
System.ObjectskipOrBinding
System.ObjecttakeOrBinding

count(ScriptScopeContext, Object)​

View Source​
Declaration
public int count(ScriptScopeContext scope, object target)
Returns​

System.Int32

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

count(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public int count(ScriptScopeContext scope, object target, object expression)
Returns​

System.Int32

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

count(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public int count(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Int32

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

sum(ScriptScopeContext, Object)​

View Source​
Declaration
public object sum(ScriptScopeContext scope, object target)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

sum(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object sum(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

sum(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public object sum(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

min(ScriptScopeContext, Object)​

View Source​
Declaration
public object min(ScriptScopeContext scope, object target)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

min(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object min(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

min(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public object min(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

max(ScriptScopeContext, Object)​

View Source​
Declaration
public object max(ScriptScopeContext scope, object target)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

max(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object max(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

max(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public object max(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

average(ScriptScopeContext, Object)​

View Source​
Declaration
public double average(ScriptScopeContext scope, object target)
Returns​

System.Double

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

average(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public double average(ScriptScopeContext scope, object target, object expression)
Returns​

System.Double

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

average(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public double average(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Double

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

reduce(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object reduce(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

reduce(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public object reduce(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

zip(ScriptScopeContext, IEnumerable, Object)​

View Source​
Declaration
public List<object[]> zip(ScriptScopeContext scope, IEnumerable original, object itemsOrBinding)
Returns​

System.Collections.Generic.List<System.Object[]>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IEnumerableoriginal
System.ObjectitemsOrBinding

flatten(Object)​

View Source​
Declaration
public List<object> flatten(object target)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Objecttarget

flatten(Object, Int32)​

View Source​
Declaration
public List<object> flatten(object target, int depth)
Returns​

System.Collections.Generic.List<System.Object>

Parameters​
TypeName
System.Objecttarget
System.Int32depth

let(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object let(ScriptScopeContext scope, object target, object scopeBindings)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.ObjectscopeBindings

first(ScriptScopeContext, Object)​

View Source​
Declaration
public object first(ScriptScopeContext scope, object target)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

first(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public object first(ScriptScopeContext scope, object target, object expression)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

first(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public object first(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

last(ScriptScopeContext, Object)​

View Source​
Declaration
public object last(ScriptScopeContext scope, object target)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

any(ScriptScopeContext, Object)​

View Source​
Declaration
public bool any(ScriptScopeContext scope, object target)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget

any(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public bool any(ScriptScopeContext scope, object target, object expression)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

any(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public bool any(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

all(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public bool all(ScriptScopeContext scope, object target, object expression)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

all(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public bool all(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

where(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IEnumerable<object> where(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

where(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public IEnumerable<object> where(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

takeWhile(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IEnumerable<object> takeWhile(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

takeWhile(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public IEnumerable<object> takeWhile(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

skipWhile(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IEnumerable<object> skipWhile(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

skipWhile(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public IEnumerable<object> skipWhile(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

orderBy(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IEnumerable<object> orderBy(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

orderBy(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public IEnumerable<object> orderBy(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

orderByDescending(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IEnumerable<object> orderByDescending(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

orderByDescending(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public IEnumerable<object> orderByDescending(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

orderByDesc(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IEnumerable<object> orderByDesc(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

orderByDesc(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public IEnumerable<object> orderByDesc(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

thenBy(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IEnumerable<object> thenBy(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

thenBy(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public IEnumerable<object> thenBy(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

thenByDescending(ScriptScopeContext, Object, Object)​

View Source​
Declaration
public IEnumerable<object> thenByDescending(ScriptScopeContext scope, object target, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression

thenByDescending(ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public IEnumerable<object> thenByDescending(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

orderByInternal(String, ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public static IEnumerable<object> orderByInternal(string filterName, ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
System.StringfilterName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

thenByInternal(String, ScriptScopeContext, Object, Object, Object)​

View Source​
Declaration
public static IEnumerable<object> thenByInternal(string filterName, ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
System.StringfilterName
ServiceStack.Script.ScriptScopeContextscope
System.Objecttarget
System.Objectexpression
System.ObjectscopeOptions

groupBy(ScriptScopeContext, IEnumerable<Object>, Object)​

View Source​
Declaration
public IEnumerable<IGrouping<object, object>> groupBy(ScriptScopeContext scope, IEnumerable<object> items, object expression)
Returns​

System.Collections.Generic.IEnumerable<System.Linq.IGrouping<System.Object,System.Object>>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.Generic.IEnumerable<System.Object>items
System.Objectexpression

groupBy(ScriptScopeContext, IEnumerable<Object>, Object, Object)​

View Source​
Declaration
public IEnumerable<IGrouping<object, object>> groupBy(ScriptScopeContext scope, IEnumerable<object> items, object expression, object scopeOptions)
Returns​

System.Collections.Generic.IEnumerable<System.Linq.IGrouping<System.Object,System.Object>>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.Generic.IEnumerable<System.Object>items
System.Objectexpression
System.ObjectscopeOptions

equivalentTo(IEnumerable<Object>, IEnumerable<Object>)​

View Source​
Declaration
public bool equivalentTo(IEnumerable<object> target, IEnumerable<object> items)
Returns​

System.Boolean

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>target
System.Collections.Generic.IEnumerable<System.Object>items

distinct(IEnumerable<Object>)​

View Source​
Declaration
public IEnumerable<object> distinct(IEnumerable<object> items)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>items

union(IEnumerable<Object>, IEnumerable<Object>)​

View Source​
Declaration
public IEnumerable<object> union(IEnumerable<object> target, IEnumerable<object> items)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>target
System.Collections.Generic.IEnumerable<System.Object>items

intersect(IEnumerable<Object>, IEnumerable<Object>)​

View Source​
Declaration
public IEnumerable<object> intersect(IEnumerable<object> target, IEnumerable<object> items)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>target
System.Collections.Generic.IEnumerable<System.Object>items

except(IEnumerable<Object>, IEnumerable<Object>)​

View Source​
Declaration
public IEnumerable<object> except(IEnumerable<object> target, IEnumerable<object> items)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>target
System.Collections.Generic.IEnumerable<System.Object>items

concat(IEnumerable<Object>, IEnumerable<Object>)​

View Source​
Declaration
public IEnumerable<object> concat(IEnumerable<object> target, IEnumerable<object> items)
Returns​

System.Collections.Generic.IEnumerable<System.Object>

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Object>target
System.Collections.Generic.IEnumerable<System.Object>items

concat(IEnumerable<String>)​

View Source​
Declaration
public string concat(IEnumerable<string> target)
Returns​

System.String

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.String>target

get(Object, Object)​

View Source​
Declaration
public object get(object target, object key)
Returns​

System.Object

Parameters​
TypeName
System.Objecttarget
System.Objectkey

raw(Object)​

View Source​
Declaration
public IRawString raw(object value)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue

appSetting(String)​

View Source​
Declaration
public string appSetting(string name)
Returns​

System.String

Parameters​
TypeName
System.Stringname

indent()​

View Source​
Declaration
public string indent()
Returns​

System.String

indents(Int32)​

View Source​
Declaration
public string indents(int count)
Returns​

System.String

Parameters​
TypeName
System.Int32count

space()​

View Source​
Declaration
public string space()
Returns​

System.String

spaces(Int32)​

View Source​
Declaration
public string spaces(int count)
Returns​

System.String

Parameters​
TypeName
System.Int32count

newLine()​

View Source​
Declaration
public string newLine()
Returns​

System.String

newLines(Int32)​

View Source​
Declaration
public string newLines(int count)
Returns​

System.String

Parameters​
TypeName
System.Int32count

newLine(String)​

View Source​
Declaration
public string newLine(string target)
Returns​

System.String

Parameters​
TypeName
System.Stringtarget

currency(Decimal)​

View Source​
Declaration
public string currency(decimal decimalValue)
Returns​

System.String

Parameters​
TypeName
System.DecimaldecimalValue

currency(Decimal, String)​

View Source​
Declaration
public string currency(decimal decimalValue, string culture)
Returns​

System.String

Parameters​
TypeName
System.DecimaldecimalValue
System.Stringculture

formatRaw(Object, String)​

View Source​
Declaration
public IRawString formatRaw(object obj, string fmt)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectobj
System.Stringfmt

format(Object, String)​

View Source​
Declaration
public string format(object obj, string format)
Returns​

System.String

Parameters​
TypeName
System.Objectobj
System.Stringformat

fmt(String, Object)​

View Source​
Declaration
public string fmt(string format, object arg)
Returns​

System.String

Parameters​
TypeName
System.Stringformat
System.Objectarg

fmt(String, Object, Object)​

View Source​
Declaration
public string fmt(string format, object arg0, object arg1)
Returns​

System.String

Parameters​
TypeName
System.Stringformat
System.Objectarg0
System.Objectarg1

fmt(String, Object, Object, Object)​

View Source​
Declaration
public string fmt(string format, object arg0, object arg1, object arg2)
Returns​

System.String

Parameters​
TypeName
System.Stringformat
System.Objectarg0
System.Objectarg1
System.Objectarg2

append(String, String)​

View Source​
Declaration
public string append(string target, string suffix)
Returns​

System.String

Parameters​
TypeName
System.Stringtarget
System.Stringsuffix

appendLine(String)​

View Source​
Declaration
public string appendLine(string target)
Returns​

System.String

Parameters​
TypeName
System.Stringtarget

appendFmt(String, String, Object)​

View Source​
Declaration
public string appendFmt(string target, string format, object arg)
Returns​

System.String

Parameters​
TypeName
System.Stringtarget
System.Stringformat
System.Objectarg

appendFmt(String, String, Object, Object)​

View Source​
Declaration
public string appendFmt(string target, string format, object arg0, object arg1)
Returns​

System.String

Parameters​
TypeName
System.Stringtarget
System.Stringformat
System.Objectarg0
System.Objectarg1

appendFmt(String, String, Object, Object, Object)​

View Source​
Declaration
public string appendFmt(string target, string format, object arg0, object arg1, object arg2)
Returns​

System.String

Parameters​
TypeName
System.Stringtarget
System.Stringformat
System.Objectarg0
System.Objectarg1
System.Objectarg2

dateFormat(DateTime)​

View Source​
Declaration
public string dateFormat(DateTime dateValue)
Returns​

System.String

Parameters​
TypeName
System.DateTimedateValue

dateFormat(DateTime, String)​

View Source​
Declaration
public string dateFormat(DateTime dateValue, string format)
Returns​

System.String

Parameters​
TypeName
System.DateTimedateValue
System.Stringformat

dateTimeFormat(DateTime)​

View Source​
Declaration
public string dateTimeFormat(DateTime dateValue)
Returns​

System.String

Parameters​
TypeName
System.DateTimedateValue

timeFormat(TimeSpan)​

View Source​
Declaration
public string timeFormat(TimeSpan timeValue)
Returns​

System.String

Parameters​
TypeName
System.TimeSpantimeValue

timeFormat(TimeSpan, String)​

View Source​
Declaration
public string timeFormat(TimeSpan timeValue, string format)
Returns​

System.String

Parameters​
TypeName
System.TimeSpantimeValue
System.Stringformat

splitCase(String)​

View Source​
Declaration
public string splitCase(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

humanize(String)​

View Source​
Declaration
public string humanize(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

titleCase(String)​

View Source​
Declaration
public string titleCase(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

pascalCase(String)​

View Source​
Declaration
public string pascalCase(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

camelCase(String)​

View Source​
Declaration
public string camelCase(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

snakeCase(String)​

View Source​
Declaration
public string snakeCase(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

kebabCase(String)​

View Source​
Declaration
public string kebabCase(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

textStyle(String, String)​

View Source​
Declaration
public string textStyle(string text, string headerStyle)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.StringheaderStyle

lower(String)​

View Source​
Declaration
public string lower(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

upper(String)​

View Source​
Declaration
public string upper(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

substring(String, Int32)​

View Source​
Declaration
public string substring(string text, int startIndex)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32startIndex

substring(String, Int32, Int32)​

View Source​
Declaration
public string substring(string text, int startIndex, int length)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32startIndex
System.Int32length

substringWithElipsis(String, Int32)​

View Source​
Declaration
[Obsolete("typo")]
public string substringWithElipsis(string text, int length)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32length

substringWithElipsis(String, Int32, Int32)​

View Source​
Declaration
[Obsolete("typo")]
public string substringWithElipsis(string text, int startIndex, int length)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32startIndex
System.Int32length

substringWithEllipsis(String, Int32)​

View Source​
Declaration
public string substringWithEllipsis(string text, int length)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32length

substringWithEllipsis(String, Int32, Int32)​

View Source​
Declaration
public string substringWithEllipsis(string text, int startIndex, int length)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32startIndex
System.Int32length

leftPart(String, String)​

View Source​
Declaration
public string leftPart(string text, string needle)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Stringneedle

rightPart(String, String)​

View Source​
Declaration
public string rightPart(string text, string needle)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Stringneedle

lastLeftPart(String, String)​

View Source​
Declaration
public string lastLeftPart(string text, string needle)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Stringneedle

lastRightPart(String, String)​

View Source​
Declaration
public string lastRightPart(string text, string needle)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Stringneedle

compareTo(String, String)​

View Source​
Declaration
public int compareTo(string text, string other)
Returns​

System.Int32

Parameters​
TypeName
System.Stringtext
System.Stringother

startsWith(String, String)​

View Source​
Declaration
public bool startsWith(string text, string needle)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringtext
System.Stringneedle

endsWith(String, String)​

View Source​
Declaration
public bool endsWith(string text, string needle)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringtext
System.Stringneedle

replace(String, String, String)​

View Source​
Declaration
public string replace(string text, string oldValue, string newValue)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.StringoldValue
System.StringnewValue

trimStart(String)​

View Source​
Declaration
public string trimStart(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

trimStart(String, Char)​

View Source​
Declaration
public string trimStart(string text, char c)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Charc

trimEnd(String)​

View Source​
Declaration
public string trimEnd(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

trimEnd(String, Char)​

View Source​
Declaration
public string trimEnd(string text, char c)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Charc

trim(String)​

View Source​
Declaration
public string trim(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

trim(String, Char)​

View Source​
Declaration
public string trim(string text, char c)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Charc

padLeft(String, Int32)​

View Source​
Declaration
public string padLeft(string text, int totalWidth)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32totalWidth

padLeft(String, Int32, Char)​

View Source​
Declaration
public string padLeft(string text, int totalWidth, char padChar)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32totalWidth
System.CharpadChar

padRight(String, Int32)​

View Source​
Declaration
public string padRight(string text, int totalWidth)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32totalWidth

padRight(String, Int32, Char)​

View Source​
Declaration
public string padRight(string text, int totalWidth, char padChar)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32totalWidth
System.CharpadChar

splitOnFirst(String, String)​

View Source​
Declaration
public string[] splitOnFirst(string text, string needle)
Returns​

System.String[]

Parameters​
TypeName
System.Stringtext
System.Stringneedle

splitOnLast(String, String)​

View Source​
Declaration
public string[] splitOnLast(string text, string needle)
Returns​

System.String[]

Parameters​
TypeName
System.Stringtext
System.Stringneedle

split(String)​

View Source​
Declaration
public string[] split(string stringList)
Returns​

System.String[]

Parameters​
TypeName
System.StringstringList

split(String, Object)​

View Source​
Declaration
public string[] split(string stringList, object delimiter)
Returns​

System.String[]

Parameters​
TypeName
System.StringstringList
System.Objectdelimiter

glob(IEnumerable<String>, String)​

View Source​
Declaration
public string[] glob(IEnumerable<string> strings, string pattern)
Returns​

System.String[]

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.String>strings
System.Stringpattern

globln(IEnumerable<String>, String)​

View Source​
Declaration
public string globln(IEnumerable<string> strings, string pattern)
Returns​

System.String

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.String>strings
System.Stringpattern

parseKeyValueText(String)​

View Source​
Declaration
public Dictionary<string, string> parseKeyValueText(string target)
Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters​
TypeName
System.Stringtarget

parseKeyValueText(String, String)​

View Source​
Declaration
public Dictionary<string, string> parseKeyValueText(string target, string delimiter)
Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters​
TypeName
System.Stringtarget
System.Stringdelimiter

parseAsKeyValues(String)​

View Source​
Declaration
public IEnumerable<KeyValuePair<string, string>> parseAsKeyValues(string target)
Returns​

System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>>

Parameters​
TypeName
System.Stringtarget

parseAsKeyValues(String, String)​

View Source​
Declaration
public IEnumerable<KeyValuePair<string, string>> parseAsKeyValues(string target, string delimiter)
Returns​

System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>>

Parameters​
TypeName
System.Stringtarget
System.Stringdelimiter

keys(Object)​

View Source​
Declaration
public ICollection keys(object target)
Returns​

System.Collections.ICollection

Parameters​
TypeName
System.Objecttarget

values(Object)​

View Source​
Declaration
public ICollection values(object target)
Returns​

System.Collections.ICollection

Parameters​
TypeName
System.Objecttarget

addPath(String, String)​

View Source​
Declaration
public string addPath(string target, string pathToAppend)
Returns​

System.String

Parameters​
TypeName
System.Stringtarget
System.StringpathToAppend

addPaths(String, IEnumerable)​

View Source​
Declaration
public string addPaths(string target, IEnumerable pathsToAppend)
Returns​

System.String

Parameters​
TypeName
System.Stringtarget
System.Collections.IEnumerablepathsToAppend

addQueryString(String, Object)​

View Source​
Declaration
public string addQueryString(string url, object urlParams)
Returns​

System.String

Parameters​
TypeName
System.Stringurl
System.ObjecturlParams

addHashParams(String, Object)​

View Source​
Declaration
public string addHashParams(string url, object urlParams)
Returns​

System.String

Parameters​
TypeName
System.Stringurl
System.ObjecturlParams

setQueryString(String, Object)​

View Source​
Declaration
public string setQueryString(string url, object urlParams)
Returns​

System.String

Parameters​
TypeName
System.Stringurl
System.ObjecturlParams

setHashParams(String, Object)​

View Source​
Declaration
public string setHashParams(string url, object urlParams)
Returns​

System.String

Parameters​
TypeName
System.Stringurl
System.ObjecturlParams

repeating(Int32, String)​

View Source​
Declaration
public string repeating(int times, string text)
Returns​

System.String

Parameters​
TypeName
System.Int32times
System.Stringtext

repeat(String, Int32)​

View Source​
Declaration
public string repeat(string text, int times)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
System.Int32times

escapeSingleQuotes(String)​

View Source​
Declaration
public string escapeSingleQuotes(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

escapeDoubleQuotes(String)​

View Source​
Declaration
public string escapeDoubleQuotes(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

escapeBackticks(String)​

View Source​
Declaration
public string escapeBackticks(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

escapePrimeQuotes(String)​

View Source​
Declaration
public string escapePrimeQuotes(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

escapeNewLines(String)​

View Source​
Declaration
public string escapeNewLines(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

jsString(String)​

View Source​
Declaration
public IRawString jsString(string text)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Stringtext

jsQuotedString(String)​

View Source​
Declaration
public IRawString jsQuotedString(string text)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Stringtext

json(Object)​

View Source​
Declaration
public IRawString json(object value)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue

json(Object, String)​

View Source​
Declaration
public IRawString json(object value, string jsconfig)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue
System.Stringjsconfig

jsv(Object)​

View Source​
Declaration
public IRawString jsv(object value)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue

jsv(Object, String)​

View Source​
Declaration
public IRawString jsv(object value, string jsconfig)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue
System.Stringjsconfig

csv(Object)​

View Source​
Declaration
public IRawString csv(object value)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue

dump(Object)​

View Source​
Declaration
public IRawString dump(object value)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue

indentJson(Object)​

View Source​
Declaration
public IRawString indentJson(object value)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue

indentJson(Object, String)​

View Source​
Declaration
public IRawString indentJson(object value, string jsconfig)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objectvalue
System.Stringjsconfig

json(ScriptScopeContext, Object)​

View Source​
Declaration
public Task json(ScriptScopeContext scope, object items)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems

json(ScriptScopeContext, Object, String)​

View Source​
Declaration
public Task json(ScriptScopeContext scope, object items, string jsConfig)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems
System.StringjsConfig

jsv(ScriptScopeContext, Object)​

View Source​
Declaration
public Task jsv(ScriptScopeContext scope, object items)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems

jsv(ScriptScopeContext, Object, String)​

View Source​
Declaration
public Task jsv(ScriptScopeContext scope, object items, string jsConfig)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems
System.StringjsConfig

dump(ScriptScopeContext, Object)​

View Source​
Declaration
public Task dump(ScriptScopeContext scope, object items)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems

dump(ScriptScopeContext, Object, String)​

View Source​
Declaration
public Task dump(ScriptScopeContext scope, object items, string jsConfig)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems
System.StringjsConfig

csv(ScriptScopeContext, Object)​

View Source​
Declaration
public Task csv(ScriptScopeContext scope, object items)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems

xml(ScriptScopeContext, Object)​

View Source​
Declaration
public Task xml(ScriptScopeContext scope, object items)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectitems

jsonToObject(String)​

View Source​
Declaration
public JsonObject jsonToObject(string json)
Returns​

ServiceStack.Text.JsonObject

Parameters​
TypeName
System.Stringjson

jsonToArrayObjects(String)​

View Source​
Declaration
public JsonArrayObjects jsonToArrayObjects(string json)
Returns​

ServiceStack.Text.JsonArrayObjects

Parameters​
TypeName
System.Stringjson

jsonToObjectDictionary(String)​

View Source​
Declaration
public Dictionary<string, object> jsonToObjectDictionary(string json)
Returns​

System.Collections.Generic.Dictionary<System.String,System.Object>

Parameters​
TypeName
System.Stringjson

jsonToStringDictionary(String)​

View Source​
Declaration
public Dictionary<string, string> jsonToStringDictionary(string json)
Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters​
TypeName
System.Stringjson

jsvToObjectDictionary(String)​

View Source​
Declaration
public Dictionary<string, object> jsvToObjectDictionary(string json)
Returns​

System.Collections.Generic.Dictionary<System.String,System.Object>

Parameters​
TypeName
System.Stringjson

jsvToStringDictionary(String)​

View Source​
Declaration
public Dictionary<string, string> jsvToStringDictionary(string json)
Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters​
TypeName
System.Stringjson

eval(ScriptScopeContext, String)​

View Source​
Declaration
public object eval(ScriptScopeContext scope, string js)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringjs

parseJson(String)​

View Source​
Declaration
public object parseJson(string json)
Returns​

System.Object

Parameters​
TypeName
System.Stringjson

base64(Byte[])​

View Source​
Declaration
public string base64(byte[] bytes)
Returns​

System.String

Parameters​
TypeName
System.Byte[]bytes

fromBase64(String)​

View Source​
Declaration
public byte[] fromBase64(string base64)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringbase64

parseCsv(String)​

View Source​
Declaration
public List<List<string>> parseCsv(string csv)
Returns​

System.Collections.Generic.List<System.Collections.Generic.List<System.String>>

Parameters​
TypeName
System.Stringcsv

parseKeyValues(String)​

View Source​
Declaration
public List<KeyValuePair<string, string>> parseKeyValues(string keyValuesText)
Returns​

System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String,System.String>>

Parameters​
TypeName
System.StringkeyValuesText

parseKeyValues(String, String)​

View Source​
Declaration
public List<KeyValuePair<string, string>> parseKeyValues(string keyValuesText, string delimiter)
Returns​

System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String,System.String>>

Parameters​
TypeName
System.StringkeyValuesText
System.Stringdelimiter

generateSlug(String)​

View Source​
Declaration
public string generateSlug(string phrase)
Returns​

System.String

Parameters​
TypeName
System.Stringphrase

isBinary(String)​

View Source​
Declaration
public bool isBinary(string fileOrExt)
Returns​

System.Boolean

Parameters​
TypeName
System.StringfileOrExt

contentType(String)​

View Source​
Declaration
public string contentType(string fileOrExt)
Returns​

System.String

Parameters​
TypeName
System.StringfileOrExt

splitLines(String)​

View Source​
Declaration
public static string[] splitLines(string contents)
Returns​

System.String[]

Parameters​
TypeName
System.Stringcontents

readLines(String)​

View Source​
Declaration
public IEnumerable<string> readLines(string contents)
Returns​

System.Collections.Generic.IEnumerable<System.String>

Parameters​
TypeName
System.Stringcontents

textList(IEnumerable)​

View Source​
Declaration
public IRawString textList(IEnumerable target)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Collections.IEnumerabletarget

textList(IEnumerable, Dictionary<String, Object>)​

View Source​
Declaration
public IRawString textList(IEnumerable target, Dictionary<string, object> options)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Collections.IEnumerabletarget
System.Collections.Generic.Dictionary<System.String,System.Object>options

textDump(Object)​

View Source​
Declaration
public IRawString textDump(object target)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objecttarget

textDump(Object, Dictionary<String, Object>)​

View Source​
Declaration
public IRawString textDump(object target, Dictionary<string, object> options)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Objecttarget
System.Collections.Generic.Dictionary<System.String,System.Object>options

TextList(IEnumerable, TextDumpOptions)​

View Source​
Declaration
public static string TextList(IEnumerable items, TextDumpOptions options)
Returns​

System.String

Parameters​
TypeName
System.Collections.IEnumerableitems
ServiceStack.TextDumpOptionsoptions

TextDump(Object, TextDumpOptions)​

View Source​
Declaration
public static string TextDump(object target, TextDumpOptions options)
Returns​

System.String

Parameters​
TypeName
System.Objecttarget
ServiceStack.TextDumpOptionsoptions

matchesPathInfo(ScriptScopeContext, String)​

View Source​
Declaration
public bool matchesPathInfo(ScriptScopeContext scope, string pathInfo)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringpathInfo

startsWithPathInfo(ScriptScopeContext, String)​

View Source​
Declaration
public bool startsWithPathInfo(ScriptScopeContext scope, string pathInfo)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringpathInfo

ifMatchesPathInfo(ScriptScopeContext, Object, String)​

View Source​
Declaration
public object ifMatchesPathInfo(ScriptScopeContext scope, object returnTarget, string pathInfo)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectreturnTarget
System.StringpathInfo

isHttpGet(ScriptScopeContext)​

View Source​
Declaration
public bool isHttpGet(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

isHttpPost(ScriptScopeContext)​

View Source​
Declaration
public bool isHttpPost(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

isHttpPut(ScriptScopeContext)​

View Source​
Declaration
public bool isHttpPut(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

isHttpDelete(ScriptScopeContext)​

View Source​
Declaration
public bool isHttpDelete(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

isHttpPatch(ScriptScopeContext)​

View Source​
Declaration
public bool isHttpPatch(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

ifHttpGet(ScriptScopeContext, Object)​

View Source​
Declaration
public object ifHttpGet(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

ifHttpGet(ScriptScopeContext)​

View Source​
Declaration
public object ifHttpGet(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

ifHttpPost(ScriptScopeContext, Object)​

View Source​
Declaration
public object ifHttpPost(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

ifHttpPost(ScriptScopeContext)​

View Source​
Declaration
public object ifHttpPost(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

ifHttpPut(ScriptScopeContext, Object)​

View Source​
Declaration
public object ifHttpPut(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

ifHttpPut(ScriptScopeContext)​

View Source​
Declaration
public object ifHttpPut(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

ifHttpDelete(ScriptScopeContext, Object)​

View Source​
Declaration
public object ifHttpDelete(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

ifHttpDelete(ScriptScopeContext)​

View Source​
Declaration
public object ifHttpDelete(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

ifHttpPatch(ScriptScopeContext, Object)​

View Source​
Declaration
public object ifHttpPatch(ScriptScopeContext scope, object ignoreTarget)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectignoreTarget

ifHttpPatch(ScriptScopeContext)​

View Source​
Declaration
public object ifHttpPatch(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

importRequestParams(ScriptScopeContext)​

View Source​
Declaration
public object importRequestParams(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

importRequestParams(ScriptScopeContext, IEnumerable)​

View Source​
Declaration
public object importRequestParams(ScriptScopeContext scope, IEnumerable onlyImportArgNames)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Collections.IEnumerableonlyImportArgNames

requestBody(ScriptScopeContext)​

View Source​
Declaration
public Stream requestBody(ScriptScopeContext scope)
Returns​

System.IO.Stream

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

rawBodyAsString(ScriptScopeContext)​

View Source​
Declaration
public string rawBodyAsString(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

rawBodyAsJson(ScriptScopeContext)​

View Source​
Declaration
public object rawBodyAsJson(ScriptScopeContext scope)
Returns​

System.Object

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

requestBodyAsString(ScriptScopeContext)​

View Source​
Declaration
public async Task<object> requestBodyAsString(ScriptScopeContext scope)
Returns​

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

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

requestBodyAsJson(ScriptScopeContext)​

View Source​
Declaration
public async Task<object> requestBodyAsJson(ScriptScopeContext scope)
Returns​

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

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

form(ScriptScopeContext)​

View Source​
Declaration
public NameValueCollection form(ScriptScopeContext scope)
Returns​

System.Collections.Specialized.NameValueCollection

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

query(ScriptScopeContext)​

View Source​
Declaration
public NameValueCollection query(ScriptScopeContext scope)
Returns​

System.Collections.Specialized.NameValueCollection

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

qs(ScriptScopeContext)​

View Source​
Declaration
public NameValueCollection qs(ScriptScopeContext scope)
Returns​

System.Collections.Specialized.NameValueCollection

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

queryString(ScriptScopeContext)​

View Source​
Declaration
public string queryString(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

queryDictionary(ScriptScopeContext)​

View Source​
Declaration
public Dictionary<string, object> queryDictionary(ScriptScopeContext scope)
Returns​

System.Collections.Generic.Dictionary<System.String,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

formDictionary(ScriptScopeContext)​

View Source​
Declaration
public Dictionary<string, object> formDictionary(ScriptScopeContext scope)
Returns​

System.Collections.Generic.Dictionary<System.String,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

toQueryString(Object)​

View Source​
Declaration
public string toQueryString(object keyValuePairs)
Returns​

System.String

Parameters​
TypeName
System.ObjectkeyValuePairs

toCoercedDictionary(Object)​

View Source​
Declaration
public Dictionary<string, object> toCoercedDictionary(object target)
Returns​

System.Collections.Generic.Dictionary<System.String,System.Object>

Parameters​
TypeName
System.Objecttarget

coerce(String)​

View Source​
Declaration
public object coerce(string str)
Returns​

System.Object

Parameters​
TypeName
System.Stringstr

httpMethod(ScriptScopeContext)​

View Source​
Declaration
public string httpMethod(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

httpRequestUrl(ScriptScopeContext)​

View Source​
Declaration
public string httpRequestUrl(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

httpPathInfo(ScriptScopeContext)​

View Source​
Declaration
public string httpPathInfo(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

formQuery(ScriptScopeContext, String)​

View Source​
Declaration
public string formQuery(ScriptScopeContext scope, string name)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

formQueryValues(ScriptScopeContext, String)​

View Source​
Declaration
public string[] formQueryValues(ScriptScopeContext scope, string name)
Returns​

System.String[]

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

httpParam(ScriptScopeContext, String)​

View Source​
Declaration
public string httpParam(ScriptScopeContext scope, string name)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

urlEncode(String, Boolean)​

View Source​
Declaration
public string urlEncode(string value, bool upperCase)
Returns​

System.String

Parameters​
TypeName
System.Stringvalue
System.BooleanupperCase

urlEncode(String)​

View Source​
Declaration
public string urlEncode(string value)
Returns​

System.String

Parameters​
TypeName
System.Stringvalue

urlDecode(String)​

View Source​
Declaration
public string urlDecode(string value)
Returns​

System.String

Parameters​
TypeName
System.Stringvalue

htmlEncode(String)​

View Source​
Declaration
public string htmlEncode(string value)
Returns​

System.String

Parameters​
TypeName
System.Stringvalue

htmlDecode(String)​

View Source​
Declaration
public string htmlDecode(string value)
Returns​

System.String

Parameters​
TypeName
System.Stringvalue

containsXss(Object)​

View Source​
Declaration
public bool containsXss(object target)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget

MatchesStringValue(Object, Func<String, Boolean>)​

View Source​
Declaration
public static bool MatchesStringValue(object target, Func<string, bool> match)
Returns​

System.Boolean

Parameters​
TypeName
System.Objecttarget
System.Func<System.String,System.Boolean>match

ContainsXss(String)​

View Source​
Declaration
public static bool ContainsXss(string text)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringtext

navItems()​

View Source​
Declaration
public List<NavItem> navItems()
Returns​

System.Collections.Generic.List<ServiceStack.NavItem>

navItems(String)​

View Source​
Declaration
public List<NavItem> navItems(string key)
Returns​

System.Collections.Generic.List<ServiceStack.NavItem>

Parameters​
TypeName
System.Stringkey

cssIncludes(IEnumerable)​

View Source​
Declaration
public IRawString cssIncludes(IEnumerable cssFiles)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Collections.IEnumerablecssFiles

jsIncludes(IEnumerable)​

View Source​
Declaration
public IRawString jsIncludes(IEnumerable jsFiles)
Returns​

ServiceStack.IRawString

Parameters​
TypeName
System.Collections.IEnumerablejsFiles

Inherited Methods​

GetInvoker(String, Int32, InvokerType)​

View Source​
Declaration
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns​

ServiceStack.MethodInvoker

Parameters​
TypeName
System.Stringname
System.Int32argsCount
ServiceStack.Script.InvokerTypetype

QueryFilters(String)​

View Source​
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns​

System.Collections.Generic.List<System.Reflection.MethodInfo>

Parameters​
TypeName
System.StringfilterName

Implements​