DefaultScripts
Assembly: ServiceStack.Common.dll
Declaration
public class DefaultScripts : ScriptMethods, IConfigureScriptContext
Properties
RemoveNewLinesFor
Declaration
public static List<string> RemoveNewLinesFor { get; }
Inherited Properties
Context
Declaration
public ScriptContext Context { get; set; }
InvokerCache
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }
Pages
Declaration
public ISharpPages Pages { get; set; }
Fields
Instance
Declaration
public static readonly DefaultScripts Instance
EvaluateWhenSkippingFilterExecution
Declaration
public static List<string> EvaluateWhenSkippingFilterExecution
XssFragments
Declaration
public static string[] XssFragments
Methods
push(IList, Object)
Declaration
public int push(IList list, object item)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Object | item |
pop(IList)
Declaration
public object pop(IList list)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IList | list |
shift(IList)
Declaration
public object shift(IList list)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IList | list |
unshift(IList, Object)
Declaration
public object unshift(IList list, object item)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Object | item |
indexOf(Object, Object)
Declaration
public int indexOf(object target, object item)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
System.Object | item |
indexOf(Object, Object, Int32)
Declaration
public int indexOf(object target, object item, int startIndex)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
System.Object | item |
System.Int32 | startIndex |
lastIndexOf(Object, Object)
Declaration
public int lastIndexOf(object target, object item)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
System.Object | item |
lastIndexOf(Object, Object, Int32)
Declaration
public int lastIndexOf(object target, object item, int startIndex)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
System.Object | item |
System.Int32 | startIndex |
splice(IList, Int32)
Declaration
public object splice(IList list, int removeAt)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | removeAt |
splice(IList, Int32, Int32)
Declaration
public List<object> splice(IList list, int removeAt, int deleteCount)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | removeAt |
System.Int32 | deleteCount |
splice(IList, Int32, Int32, List<Object>)
Declaration
public List<object> splice(IList list, int removeAt, int deleteCount, List<object> insertItems)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | removeAt |
System.Int32 | deleteCount |
System.Collections.Generic.List<System.Object> | insertItems |
slice(IList)
Declaration
public List<object> slice(IList list)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
slice(IList, Int32)
Declaration
public List<object> slice(IList list, int begin)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | begin |
slice(IList, Int32, Int32)
Declaration
public List<object> slice(IList list, int begin, int end)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | begin |
System.Int32 | end |
forEach(ScriptScopeContext, Object, JsArrowFunctionExpression)
Declaration
public IgnoreResult forEach(ScriptScopeContext scope, object target, JsArrowFunctionExpression arrowExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
every(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public bool every(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Boolean
Parameters
some(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public bool some(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Boolean
Parameters
find(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public object find(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Object
Parameters
findIndex(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public int findIndex(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Int32
Parameters
filter(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public List<object> filter(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Collections.Generic.List<System.Object>
Parameters
flat(IList)
Declaration
public List<object> flat(IList list)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
flat(IList, Int32)
Declaration
public List<object> flat(IList list, int depth)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Int32 | depth |
flatMap(ScriptScopeContext, IList, JsArrowFunctionExpression)
Declaration
public List<object> flatMap(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression)
Returns
System.Collections.Generic.List<System.Object>
Parameters
flatMap(ScriptScopeContext, IList, JsArrowFunctionExpression, Int32)
Declaration
public List<object> flatMap(ScriptScopeContext scope, IList list, JsArrowFunctionExpression expression, int depth)
Returns
System.Collections.Generic.List<System.Object>
Parameters
includes(IList, Object)
Declaration
public bool includes(IList list, object item)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Object | item |
includes(IList, Object, Int32)
Declaration
public bool includes(IList list, object item, int fromIndex)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Collections.IList | list |
System.Object | item |
System.Int32 | fromIndex |
sort(List<Object>)
Declaration
public List<object> sort(List<object> list)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.Generic.List<System.Object> | list |
Configure(ScriptContext)
Declaration
public void Configure(ScriptContext context)
Parameters
now()
Returns
System.DateTime
utcNow()
Returns
System.DateTime
nowOffset()
Declaration
public DateTimeOffset nowOffset()
Returns
System.DateTimeOffset
utcNowOffset()
Declaration
public DateTimeOffset utcNowOffset()
Returns
System.DateTimeOffset
nguid()
Returns
System.Guid
addTicks(DateTime, Int32)
Declaration
public DateTime addTicks(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addMilliseconds(DateTime, Int32)
Declaration
public DateTime addMilliseconds(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addSeconds(DateTime, Int32)
Declaration
public DateTime addSeconds(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addMinutes(DateTime, Int32)
Declaration
public DateTime addMinutes(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addHours(DateTime, Int32)
Declaration
public DateTime addHours(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addDays(DateTime, Int32)
Declaration
public DateTime addDays(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addMonths(DateTime, Int32)
Declaration
public DateTime addMonths(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
addYears(DateTime, Int32)
Declaration
public DateTime addYears(DateTime target, int count)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | target |
System.Int32 | count |
itemsOf(Int32, Object)
Declaration
public List<object> itemsOf(int count, object target)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Int32 | count |
System.Object | target |
times(Int32)
Declaration
public List<int> times(int count)
Returns
System.Collections.Generic.List<System.Int32>
Parameters
Type | Name |
---|
System.Int32 | count |
range(Int32)
Declaration
public IEnumerable<int> range(int count)
Returns
System.Collections.Generic.IEnumerable<System.Int32>
Parameters
Type | Name |
---|
System.Int32 | count |
range(Int32, Int32)
Declaration
public IEnumerable<int> range(int start, int count)
Returns
System.Collections.Generic.IEnumerable<System.Int32>
Parameters
Type | Name |
---|
System.Int32 | start |
System.Int32 | count |
isEven(Int32)
Declaration
public bool isEven(int value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Int32 | value |
isOdd(Int32)
Declaration
public bool isOdd(int value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Int32 | value |
isTrue(Object)
Declaration
public static bool isTrue(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isTruthy(Object)
Declaration
public static bool isTruthy(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isFalsy(Object)
Declaration
public static bool isFalsy(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
iif(Object, Object, Object)
Declaration
public object iif(object test, object ifTrue, object ifFalse)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | ifTrue |
System.Object | ifFalse |
when(Object, Object)
Declaration
public object when(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifNot(Object, Object)
Declaration
public object ifNot(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
unless(Object, Object)
Declaration
public object unless(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
otherwise(Object, Object)
Declaration
public object otherwise(object returnTarget, object elseReturn)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | elseReturn |
ifElse(Object, Object, Object)
Declaration
public object ifElse(object returnTarget, object test, object defaultValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
System.Object | defaultValue |
ifNotElse(Object, Object, Object)
Declaration
public object ifNotElse(object returnTarget, object test, object defaultValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
System.Object | defaultValue |
unlessElse(Object, Object, Object)
Declaration
public object unlessElse(object returnTarget, object test, object defaultValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
System.Object | defaultValue |
ifFalsy(Object, Object)
Declaration
public object ifFalsy(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifTruthy(Object, Object)
Declaration
public object ifTruthy(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
falsy(Object, Object)
Declaration
public object falsy(object test, object returnIfFalsy)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | returnIfFalsy |
truthy(Object, Object)
Declaration
public object truthy(object test, object returnIfTruthy)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | returnIfTruthy |
isNull(Object)
Declaration
public bool isNull(object test)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | test |
isNotNull(Object)
Declaration
public bool isNotNull(object test)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | test |
exists(Object)
Declaration
public bool exists(object test)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | test |
isZero(Double)
Declaration
public bool isZero(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
isPositive(Double)
Declaration
public bool isPositive(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
isNegative(Double)
Declaration
public bool isNegative(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
isNaN(Double)
Declaration
public bool isNaN(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
isInfinity(Double)
Declaration
public bool isInfinity(double value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Double | value |
ifExists(Object)
Declaration
public object ifExists(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
ifExists(Object, Object)
Declaration
public object ifExists(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifNotExists(Object, Object)
Declaration
public object ifNotExists(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifNo(Object, Object)
Declaration
public object ifNo(object returnTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | target |
ifNotEmpty(Object)
Declaration
public object ifNotEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
ifNotEmpty(Object, Object)
Declaration
public object ifNotEmpty(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifEmpty(Object, Object)
Declaration
public object ifEmpty(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifTrue(Object, Object)
Declaration
public object ifTrue(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
ifFalse(Object, Object)
Declaration
public object ifFalse(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
isEmpty(Object)
Declaration
public bool isEmpty(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
IsNullOrWhiteSpace(Object)
Declaration
public bool IsNullOrWhiteSpace(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
Declaration
public bool isEnum(Enum source, object value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Enum | source |
System.Object | value |
hasFlag(Enum, Object)
Declaration
public bool hasFlag(Enum source, object value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Enum | source |
System.Object | value |
end()
Declaration
public StopExecution end()
Returns
ServiceStack.Script.StopExecution
end(ScriptScopeContext, Object)
Declaration
public Task end(ScriptScopeContext scope, object ignore)
Returns
System.Threading.Tasks.Task
Parameters
end(Object)
Declaration
public StopExecution end(object ignore)
Returns
ServiceStack.Script.StopExecution
Parameters
Type | Name |
---|
System.Object | ignore |
endIfNull(Object)
Declaration
public object endIfNull(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfNull(Object, Object)
Declaration
public object endIfNull(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfNotNull(Object)
Declaration
public object endIfNotNull(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfNotNull(Object, Object)
Declaration
public object endIfNotNull(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfExists(Object)
Declaration
public object endIfExists(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfExists(Object, Object)
Declaration
public object endIfExists(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfEmpty(Object)
Declaration
public object endIfEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfEmpty(Object, Object)
Declaration
public object endIfEmpty(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfNotEmpty(Object)
Declaration
public object endIfNotEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfNotEmpty(Object, Object)
Declaration
public object endIfNotEmpty(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfFalsy(Object)
Declaration
public object endIfFalsy(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfFalsy(Object, Object)
Declaration
public object endIfFalsy(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIfTruthy(Object)
Declaration
public object endIfTruthy(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
endIfTruthy(Object, Object)
Declaration
public object endIfTruthy(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
endIf(Object)
Declaration
public object endIf(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
endIf(Object, Boolean)
Declaration
public object endIf(object returnTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Boolean | test |
endIfAny(ScriptScopeContext, Object, Object)
Declaration
public object endIfAny(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
endIfAll(ScriptScopeContext, Object, Object)
Declaration
public object endIfAll(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
endWhere(ScriptScopeContext, Object, Object)
Declaration
public object endWhere(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
endWhere(ScriptScopeContext, Object, Object, Object)
Declaration
public object endWhere(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
ifEnd(Boolean)
Declaration
public object ifEnd(bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Boolean | test |
ifEnd(Object, Boolean)
Declaration
public object ifEnd(object ignoreTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Boolean | test |
ifNotEnd(Boolean)
Declaration
public object ifNotEnd(bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Boolean | test |
ifNotEnd(Object, Boolean)
Declaration
public object ifNotEnd(object ignoreTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Boolean | test |
onlyIfNull(Object)
Declaration
public object onlyIfNull(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfNull(Object, Object)
Declaration
public object onlyIfNull(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfNotNull(Object)
Declaration
public object onlyIfNotNull(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfNotNull(Object, Object)
Declaration
public object onlyIfNotNull(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfExists(Object)
Declaration
public object onlyIfExists(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfExists(Object, Object)
Declaration
public object onlyIfExists(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfEmpty(Object)
Declaration
public object onlyIfEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfEmpty(Object, Object)
Declaration
public object onlyIfEmpty(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfNotEmpty(Object)
Declaration
public object onlyIfNotEmpty(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfNotEmpty(Object, Object)
Declaration
public object onlyIfNotEmpty(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfFalsy(Object)
Declaration
public object onlyIfFalsy(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfFalsy(Object, Object)
Declaration
public object onlyIfFalsy(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIfTruthy(Object)
Declaration
public object onlyIfTruthy(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
onlyIfTruthy(Object, Object)
Declaration
public object onlyIfTruthy(object ignoreTarget, object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | target |
onlyIf(Object)
Declaration
public object onlyIf(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
onlyIf(Object, Boolean)
Declaration
public object onlyIf(object returnTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Boolean | test |
onlyIfAny(ScriptScopeContext, Object, Object)
Declaration
public object onlyIfAny(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
onlyIfAll(ScriptScopeContext, Object, Object)
Declaration
public object onlyIfAll(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
onlyWhere(ScriptScopeContext, Object, Object)
Declaration
public object onlyWhere(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
onlyIfDebug(Object)
Declaration
public object onlyIfDebug(object returnTarget)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
endIfDebug(Object)
Declaration
public object endIfDebug(object returnTarget)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
onlyWhere(ScriptScopeContext, Object, Object, Object)
Declaration
public object onlyWhere(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
ifOnly(Boolean)
Declaration
public object ifOnly(bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Boolean | test |
ifOnly(Object, Boolean)
Declaration
public object ifOnly(object ignoreTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Boolean | test |
ifNotOnly(Boolean)
Declaration
public object ifNotOnly(bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Boolean | test |
ifNotOnly(Object, Boolean)
Declaration
public object ifNotOnly(object ignoreTarget, bool test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Boolean | test |
ifDo(Object)
Declaration
public object ifDo(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
ifDo(Object, Object)
Declaration
public object ifDo(object ignoreTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | test |
doIf(Object)
Declaration
public object doIf(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
doIf(Object, Object)
Declaration
public object doIf(object ignoreTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | test |
ifUse(Object, Object)
Declaration
public object ifUse(object test, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | useValue |
ifShow(Object, Object)
Declaration
public object ifShow(object test, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | useValue |
ifShowRaw(Object, Object)
Declaration
public object ifShowRaw(object test, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
System.Object | useValue |
useIf(Object, Object)
Declaration
public object useIf(object useValue, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | useValue |
System.Object | test |
showIf(Object, Object)
Declaration
public object showIf(object useValue, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | useValue |
System.Object | test |
showIfExists(Object, Object)
Declaration
public object showIfExists(object useValue, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | useValue |
System.Object | test |
use(Object, Object)
Declaration
public object use(object ignoreTarget, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | useValue |
show(Object, Object)
Declaration
public object show(object ignoreTarget, object useValue)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | useValue |
showRaw(Object, String)
Declaration
public IRawString showRaw(object ignoreTarget, string content)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | content |
useFmt(Object, String, Object)
Declaration
public object useFmt(object ignoreTarget, string format, object arg)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg |
useFmt(Object, String, Object, Object)
Declaration
public object useFmt(object ignoreTarget, string format, object arg1, object arg2)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
useFmt(Object, String, Object, Object, Object)
Declaration
public object useFmt(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
System.Object | arg3 |
Declaration
public object useFormat(object ignoreTarget, object arg, string fmt)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | arg |
System.String | fmt |
showFmt(Object, String, Object)
Declaration
public object showFmt(object ignoreTarget, string format, object arg)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg |
showFmt(Object, String, Object, Object)
Declaration
public object showFmt(object ignoreTarget, string format, object arg1, object arg2)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
showFmt(Object, String, Object, Object, Object)
Declaration
public object showFmt(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
System.Object | arg3 |
Declaration
public object showFormat(object ignoreTarget, object arg, string fmt)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.Object | arg |
System.String | fmt |
showFmtRaw(Object, String, Object)
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg |
showFmtRaw(Object, String, Object, Object)
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg1, object arg2)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
showFmtRaw(Object, String, Object, Object, Object)
Declaration
public IRawString showFmtRaw(object ignoreTarget, string format, object arg1, object arg2, object arg3)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | ignoreTarget |
System.String | format |
System.Object | arg1 |
System.Object | arg2 |
System.Object | arg3 |
isString(Object)
Declaration
public bool isString(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isInt(Object)
Declaration
public bool isInt(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isLong(Object)
Declaration
public bool isLong(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isInteger(Object)
Declaration
public bool isInteger(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isDouble(Object)
Declaration
public bool isDouble(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isFloat(Object)
Declaration
public bool isFloat(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isDecimal(Object)
Declaration
public bool isDecimal(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isBool(Object)
Declaration
public bool isBool(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isList(Object)
Declaration
public bool isList(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isEnumerable(Object)
Declaration
public bool isEnumerable(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isDictionary(Object)
Declaration
public bool isDictionary(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isChar(Object)
Declaration
public bool isChar(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isChars(Object)
Declaration
public bool isChars(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isByte(Object)
Declaration
public bool isByte(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isBytes(Object)
Declaration
public bool isBytes(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isObjectDictionary(Object)
Declaration
public bool isObjectDictionary(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isStringDictionary(Object)
Declaration
public bool isStringDictionary(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isType(Object, String)
Declaration
public bool isType(object target, string typeName)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.String | typeName |
isNumber(Object)
Declaration
public bool isNumber(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isRealNumber(Object)
Declaration
public bool isRealNumber(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isEnum(Object)
Declaration
public bool isEnum(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isArray(Object)
Declaration
public bool isArray(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isAnonObject(Object)
Declaration
public bool isAnonObject(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isClass(Object)
Declaration
public bool isClass(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isValueType(Object)
Declaration
public bool isValueType(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isDto(Object)
Declaration
public bool isDto(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isTuple(Object)
Declaration
public bool isTuple(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
isKeyValuePair(Object)
Declaration
public bool isKeyValuePair(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
instanceOf(Object, Object)
Declaration
public bool instanceOf(object target, object type)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | type |
length(Object)
Declaration
public int length(object target)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
hasMinCount(Object, Int32)
Declaration
public bool hasMinCount(object target, int minCount)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Int32 | minCount |
hasMaxCount(Object, Int32)
Declaration
public bool hasMaxCount(object target, int maxCount)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Int32 | maxCount |
OR(Object, Object)
Declaration
public bool OR(object lhs, object rhs)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
AND(Object, Object)
Declaration
public bool AND(object lhs, object rhs)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
equals(Object, Object)
Declaration
public bool equals(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
notEquals(Object, Object)
Declaration
public bool notEquals(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
greaterThan(Object, Object)
Declaration
public bool greaterThan(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
greaterThanEqual(Object, Object)
Declaration
public bool greaterThanEqual(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
lessThan(Object, Object)
Declaration
public bool lessThan(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
lessThanEqual(Object, Object)
Declaration
public bool lessThanEqual(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
not(Boolean)
Declaration
public bool not(bool target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Boolean | target |
eq(Object, Object)
Declaration
public bool eq(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
not(Object, Object)
Declaration
public bool not(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
gt(Object, Object)
Declaration
public bool gt(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
gte(Object, Object)
Declaration
public bool gte(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
lt(Object, Object)
Declaration
public bool lt(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
lte(Object, Object)
Declaration
public bool lte(object target, object other)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | other |
echo(Object)
Declaration
public object echo(object value)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | value |
pass(String)
Declaration
public IRawString pass(string target)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.String | target |
join(IEnumerable<Object>)
Declaration
public string join(IEnumerable<object> values)
Returns
System.String
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | values |
joinln(IEnumerable<Object>)
Declaration
public string joinln(IEnumerable<object> values)
Returns
System.String
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | values |
join(IEnumerable<Object>, String)
Declaration
public string join(IEnumerable<object> values, string delimiter)
Returns
System.String
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | values |
System.String | delimiter |
reverse(ScriptScopeContext, IEnumerable<Object>)
Declaration
public IEnumerable<object> reverse(ScriptScopeContext scope, IEnumerable<object> original)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
keyValuePair(String, Object)
Declaration
public KeyValuePair<string, object> keyValuePair(string key, object value)
Returns
System.Collections.Generic.KeyValuePair<System.String,System.Object>
Parameters
Type | Name |
---|
System.String | key |
System.Object | value |
prependTo(ScriptScopeContext, String, Object)
Declaration
public IgnoreResult prependTo(ScriptScopeContext scope, string value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
prependToGlobal(ScriptScopeContext, String, Object)
Declaration
public IgnoreResult prependToGlobal(ScriptScopeContext scope, string value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
appendTo(ScriptScopeContext, String, Object)
Declaration
public IgnoreResult appendTo(ScriptScopeContext scope, string value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
appendToGlobal(ScriptScopeContext, String, Object)
Declaration
public IgnoreResult appendToGlobal(ScriptScopeContext scope, string value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addToStart(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult addToStart(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addToStartGlobal(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult addToStartGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addTo(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult addTo(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addToGlobal(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult addToGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
addItem(Object, Object)
Declaration
public object addItem(object collection, object value)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | collection |
System.Object | value |
putItem(IDictionary, Object, Object)
Puts value in dictionary at key
Declaration
public object putItem(IDictionary dictionary, object key, object value)
Returns
System.Object
: value
Parameters
Type | Name |
---|
System.Collections.IDictionary | dictionary |
System.Object | key |
System.Object | value |
resolveArg(ScriptScopeContext, String)
Declaration
public object resolveArg(ScriptScopeContext scope, string name)
Returns
System.Object
Parameters
resolveGlobal(ScriptScopeContext, String)
Declaration
public object resolveGlobal(ScriptScopeContext scope, string name)
Returns
System.Object
Parameters
resolvePageArg(ScriptScopeContext, String)
Declaration
public object resolvePageArg(ScriptScopeContext scope, string name)
Returns
System.Object
Parameters
resolveContextArg(ScriptScopeContext, String)
Declaration
public object resolveContextArg(ScriptScopeContext scope, string name)
Returns
System.Object
Parameters
assign(ScriptScopeContext, String, Object)
Declaration
public object assign(ScriptScopeContext scope, string argExpr, object value)
Returns
System.Object
Parameters
assignGlobal(ScriptScopeContext, String, Object)
Declaration
public object assignGlobal(ScriptScopeContext scope, string argExpr, object value)
Returns
System.Object
Parameters
to(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult to(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
assignTo(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult assignTo(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
toGlobal(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult toGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
assignToGlobal(ScriptScopeContext, Object, Object)
Declaration
public IgnoreResult assignToGlobal(ScriptScopeContext scope, object value, object argExpr)
Returns
ServiceStack.Script.IgnoreResult
Parameters
to(ScriptScopeContext, Object)
Declaration
public Task to(ScriptScopeContext scope, object argExpr)
Returns
System.Threading.Tasks.Task
Parameters
assignTo(ScriptScopeContext, Object)
Declaration
public Task assignTo(ScriptScopeContext scope, object argExpr)
Returns
System.Threading.Tasks.Task
Parameters
toGlobal(ScriptScopeContext, Object)
Declaration
public Task toGlobal(ScriptScopeContext scope, object argExpr)
Returns
System.Threading.Tasks.Task
Parameters
assignToGlobal(ScriptScopeContext, Object)
Declaration
public Task assignToGlobal(ScriptScopeContext scope, object argExpr)
Returns
System.Threading.Tasks.Task
Parameters
GetVarNameFromStringOrArrowExpression(String, Object)
Declaration
public static string GetVarNameFromStringOrArrowExpression(string filterName, object argExpr)
Returns
System.String
Parameters
Type | Name |
---|
System.String | filterName |
System.Object | argExpr |
buffer(ScriptScopeContext, Object)
Declaration
public Task buffer(ScriptScopeContext scope, object target)
Returns
System.Threading.Tasks.Task
Parameters
partial(ScriptScopeContext, Object)
Declaration
public Task partial(ScriptScopeContext scope, object target)
Returns
System.Threading.Tasks.Task
Parameters
partial(ScriptScopeContext, Object, Object)
Declaration
public async Task partial(ScriptScopeContext scope, object target, object scopedParams)
Returns
System.Threading.Tasks.Task
Parameters
selectEach(ScriptScopeContext, Object, Object)
Declaration
public Task selectEach(ScriptScopeContext scope, object target, object items)
Returns
System.Threading.Tasks.Task
Parameters
selectEach(ScriptScopeContext, Object, Object, Object)
Declaration
public async Task selectEach(ScriptScopeContext scope, object target, object items, object scopeOptions)
Returns
System.Threading.Tasks.Task
Parameters
toString(Object)
Declaration
public string toString(object target)
Returns
System.String
Parameters
Type | Name |
---|
System.Object | target |
asString(Object)
Declaration
public string asString(object target)
Returns
System.String
Parameters
Type | Name |
---|
System.Object | target |
toList(IEnumerable)
Declaration
public List<object> toList(IEnumerable target)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
toStringList(IEnumerable)
Declaration
public List<string> toStringList(IEnumerable target)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
toArray(IEnumerable)
Declaration
public object[] toArray(IEnumerable target)
Returns
System.Object[]
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
fromCharCode(Int32)
Declaration
public char fromCharCode(int charCode)
Returns
System.Char
Parameters
Type | Name |
---|
System.Int32 | charCode |
toChar(Object)
Declaration
public char toChar(object target)
Returns
System.Char
Parameters
Type | Name |
---|
System.Object | target |
toChars(Object)
Declaration
public char[] toChars(object target)
Returns
System.Char[]
Parameters
Type | Name |
---|
System.Object | target |
toCharCode(Object)
Declaration
public int toCharCode(object target)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
toUtf8Bytes(String)
Declaration
public byte[] toUtf8Bytes(string target)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | target |
fromUtf8Bytes(Byte[])
Declaration
public string fromUtf8Bytes(byte[] target)
Returns
System.String
Parameters
Type | Name |
---|
System.Byte[] | target |
toByte(Object)
Declaration
public byte toByte(object target)
Returns
System.Byte
Parameters
Type | Name |
---|
System.Object | target |
toInt(Object)
Declaration
public int toInt(object target)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Object | target |
toLong(Object)
Declaration
public long toLong(object target)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Object | target |
toFloat(Object)
Declaration
public float toFloat(object target)
Returns
System.Single
Parameters
Type | Name |
---|
System.Object | target |
toDouble(Object)
Declaration
public double toDouble(object target)
Returns
System.Double
Parameters
Type | Name |
---|
System.Object | target |
toDecimal(Object)
Declaration
public decimal toDecimal(object target)
Returns
System.Decimal
Parameters
Type | Name |
---|
System.Object | target |
toBool(Object)
Declaration
public bool toBool(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
toDateTime(Object)
Declaration
public DateTime toDateTime(object target)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.Object | target |
date(Int32, Int32, Int32)
Declaration
public DateTime date(int year, int month, int day)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.Int32 | year |
System.Int32 | month |
System.Int32 | day |
date(Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public DateTime date(int year, int month, int day, int hour, int min, int secs)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.Int32 | year |
System.Int32 | month |
System.Int32 | day |
System.Int32 | hour |
System.Int32 | min |
System.Int32 | secs |
toTimeSpan(Object)
Declaration
public TimeSpan toTimeSpan(object target)
Returns
System.TimeSpan
Parameters
Type | Name |
---|
System.Object | target |
time(Int32, Int32, Int32)
Declaration
public TimeSpan time(int hours, int mins, int secs)
Returns
System.TimeSpan
Parameters
Type | Name |
---|
System.Int32 | hours |
System.Int32 | mins |
System.Int32 | secs |
time(Int32, Int32, Int32, Int32)
Declaration
public TimeSpan time(int days, int hours, int mins, int secs)
Returns
System.TimeSpan
Parameters
Type | Name |
---|
System.Int32 | days |
System.Int32 | hours |
System.Int32 | mins |
System.Int32 | secs |
pair(String, Object)
Declaration
public KeyValuePair<string, object> pair(string key, object value)
Returns
System.Collections.Generic.KeyValuePair<System.String,System.Object>
Parameters
Type | Name |
---|
System.String | key |
System.Object | value |
toKeys(Object)
Declaration
public List<string> toKeys(object target)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.Object | target |
toValues(Object)
Declaration
public List<object> toValues(object target)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Object | target |
toObjectDictionary(Object)
Declaration
public Dictionary<string, object> toObjectDictionary(object target)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|
System.Object | target |
toStringDictionary(IDictionary)
Declaration
public Dictionary<string, string> toStringDictionary(IDictionary map)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|
System.Collections.IDictionary | map |
splitStringList(IEnumerable)
Declaration
public List<string> splitStringList(IEnumerable strings)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | strings |
toVarNames(IEnumerable)
Declaration
public List<string> toVarNames(IEnumerable names)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | names |
AssertWithinMaxQuota(Int32)
Declaration
public int AssertWithinMaxQuota(int value)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Int32 | value |
toDictionary(ScriptScopeContext, Object, Object)
Declaration
public Dictionary<object, object> toDictionary(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.Dictionary<System.Object,System.Object>
Parameters
toDictionary(ScriptScopeContext, Object, Object, Object)
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(Object)
Declaration
public IRawString typeName(object target)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | target |
typeFullName(Object)
Declaration
public IRawString typeFullName(object target)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | target |
of(ScriptScopeContext, IEnumerable, Object)
Declaration
public IEnumerable of(ScriptScopeContext scope, IEnumerable target, object scopeOptions)
Returns
System.Collections.IEnumerable
Parameters
do(ScriptScopeContext, Object)
Declaration
public object do(ScriptScopeContext scope, object expression)
Returns
System.Object
Parameters
do(ScriptScopeContext, Object, Object)
Declaration
public Task do(ScriptScopeContext scope, object target, object expression)
Returns
System.Threading.Tasks.Task
Parameters
do(ScriptScopeContext, Object, Object, Object)
Declaration
public Task do(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Threading.Tasks.Task
Parameters
props(Object)
Declaration
public List<string> props(object o)
Returns
System.Collections.Generic.List<System.String>
Parameters
propTypes(Object)
Declaration
public PropertyInfo[] propTypes(object o)
Returns
System.Reflection.PropertyInfo[]
Parameters
staticProps(Object)
Declaration
public List<string> staticProps(object o)
Returns
System.Collections.Generic.List<System.String>
Parameters
staticPropTypes(Object)
Declaration
public PropertyInfo[] staticPropTypes(object o)
Returns
System.Reflection.PropertyInfo[]
Parameters
fields(Object)
Declaration
public List<string> fields(object o)
Returns
System.Collections.Generic.List<System.String>
Parameters
fieldTypes(Object)
Declaration
public FieldInfo[] fieldTypes(object o)
Returns
System.Reflection.FieldInfo[]
Parameters
staticFields(Object)
Declaration
public List<string> staticFields(object o)
Returns
System.Collections.Generic.List<System.String>
Parameters
staticFieldTypes(Object)
Declaration
public FieldInfo[] staticFieldTypes(object o)
Returns
System.Reflection.FieldInfo[]
Parameters
property(Object, String)
Declaration
public object property(object target, string propertyName)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
System.String | propertyName |
field(Object, String)
Declaration
public object field(object target, string fieldName)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
System.String | fieldName |
map(ScriptScopeContext, Object, Object)
Declaration
public object map(ScriptScopeContext scope, object items, object expression)
Returns
System.Object
Parameters
map(ScriptScopeContext, Object, Object, Object)
Declaration
public object map(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
scopeVars(Object)
Declaration
public object scopeVars(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
selectFields(Object, Object)
Declaration
public object selectFields(object target, object names)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
System.Object | names |
select(ScriptScopeContext, Object, Object)
Declaration
public Task select(ScriptScopeContext scope, object target, object selectTemplate)
Returns
System.Threading.Tasks.Task
Parameters
select(ScriptScopeContext, Object, Object, Object)
Declaration
public async Task select(ScriptScopeContext scope, object target, object selectTemplate, object scopeOptions)
Returns
System.Threading.Tasks.Task
Parameters
selectPartial(ScriptScopeContext, Object, String)
Declaration
public Task selectPartial(ScriptScopeContext scope, object target, string pageName)
Returns
System.Threading.Tasks.Task
Parameters
selectPartial(ScriptScopeContext, Object, String, Object)
Declaration
public async Task selectPartial(ScriptScopeContext scope, object target, string pageName, object scopedParams)
Returns
System.Threading.Tasks.Task
Parameters
removeKeyFromDictionary(IDictionary, Object)
Declaration
public object removeKeyFromDictionary(IDictionary dictionary, object keyToRemove)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IDictionary | dictionary |
System.Object | keyToRemove |
remove(Object, Object)
Declaration
public object remove(object target, object keysToRemove)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
System.Object | keysToRemove |
withoutNullValues(Object)
Declaration
public object withoutNullValues(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
withoutEmptyValues(Object)
Declaration
public object withoutEmptyValues(object target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
withKeys(IDictionary<String, Object>, Object)
Declaration
public object withKeys(IDictionary<string, object> target, object keys)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.Generic.IDictionary<System.String,System.Object> | target |
System.Object | keys |
ownProps(IEnumerable<KeyValuePair<String, Object>>)
Declaration
public object ownProps(IEnumerable<KeyValuePair<string, object>> target)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>> | target |
withoutKeys(IDictionary<String, Object>, Object)
Declaration
public object withoutKeys(IDictionary<string, object> target, object keys)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.Generic.IDictionary<System.String,System.Object> | target |
System.Object | keys |
merge(Object)
Declaration
public object merge(object sources)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | sources |
merge(IDictionary<String, Object>, Object)
Declaration
public object merge(IDictionary<string, object> target, object sources)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.Generic.IDictionary<System.String,System.Object> | target |
System.Object | sources |
dirPath(String)
Declaration
public string dirPath(string filePath)
Returns
System.String
Parameters
Type | Name |
---|
System.String | filePath |
resolveAsset(ScriptScopeContext, String)
Declaration
public string resolveAsset(ScriptScopeContext scope, string virtualPath)
Returns
System.String
Parameters
evalTemplate(ScriptScopeContext, String)
Declaration
[Obsolete("Use evalScript")]
public Task<object> evalTemplate(ScriptScopeContext scope, string source)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
evalTemplate(ScriptScopeContext, String, Dictionary<String, Object>)
Declaration
[Obsolete("Use evalScript")]
public Task<object> evalTemplate(ScriptScopeContext scope, string source, Dictionary<string, object> args)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
evalScript(ScriptScopeContext, String)
Declaration
public Task<object> evalScript(ScriptScopeContext scope, string source)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
evalScript(ScriptScopeContext, String, Dictionary<String, Object>)
Declaration
public async Task<object> evalScript(ScriptScopeContext scope, string source, Dictionary<string, object> args)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
write(ScriptScopeContext, Object)
Declaration
public IgnoreResult write(ScriptScopeContext scope, object value)
Returns
ServiceStack.Script.IgnoreResult
Parameters
writeln(ScriptScopeContext, Object)
Declaration
public IgnoreResult writeln(ScriptScopeContext scope, object value)
Returns
ServiceStack.Script.IgnoreResult
Parameters
unwrap(Object)
Declaration
public object unwrap(object value)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | value |
sync(Object)
Declaration
public object sync(object value)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | value |
if(Object)
Declaration
public object if(object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | test |
if(Object, Object)
Declaration
public object if(object returnTarget, object test)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | test |
default(Object, Object)
Declaration
public object default(object returnTarget, object elseReturn)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | returnTarget |
System.Object | elseReturn |
throw(ScriptScopeContext, String)
Declaration
public object throw(ScriptScopeContext scope, string message)
Returns
System.Object
Parameters
throw(ScriptScopeContext, String, Object)
Declaration
public object throw(ScriptScopeContext scope, string message, object options)
Returns
System.Object
Parameters
return(ScriptScopeContext)
Declaration
public StopExecution return(ScriptScopeContext scope)
Returns
ServiceStack.Script.StopExecution
Parameters
return(ScriptScopeContext, Object)
Declaration
public StopExecution return(ScriptScopeContext scope, object returnValue)
Returns
ServiceStack.Script.StopExecution
Parameters
return(ScriptScopeContext, Object, Dictionary<String, Object>)
Declaration
public StopExecution return(ScriptScopeContext scope, object returnValue, Dictionary<string, object> returnArgs)
Returns
ServiceStack.Script.StopExecution
Parameters
assignError(ScriptScopeContext, String)
Declaration
public object assignError(ScriptScopeContext scope, string errorBinding)
Returns
System.Object
Parameters
catchError(ScriptScopeContext, String)
Declaration
public object catchError(ScriptScopeContext scope, string errorBinding)
Returns
System.Object
Parameters
assignErrorAndContinueExecuting(ScriptScopeContext, String)
Declaration
public object assignErrorAndContinueExecuting(ScriptScopeContext scope, string errorBinding)
Returns
System.Object
Parameters
continueExecutingFiltersOnError(ScriptScopeContext, Object)
Declaration
public object continueExecutingFiltersOnError(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
continueExecutingFiltersOnError(ScriptScopeContext)
Declaration
public object continueExecutingFiltersOnError(ScriptScopeContext scope)
Returns
System.Object
Parameters
skipExecutingFiltersOnError(ScriptScopeContext, Object)
Declaration
public object skipExecutingFiltersOnError(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
skipExecutingFiltersOnError(ScriptScopeContext)
Declaration
public object skipExecutingFiltersOnError(ScriptScopeContext scope)
Returns
System.Object
Parameters
endIfError(ScriptScopeContext)
Declaration
public object endIfError(ScriptScopeContext scope)
Returns
System.Object
Parameters
endIfError(ScriptScopeContext, Object)
Declaration
public object endIfError(ScriptScopeContext scope, object value)
Returns
System.Object
Parameters
ifNoError(ScriptScopeContext)
Declaration
public object ifNoError(ScriptScopeContext scope)
Returns
System.Object
Parameters
ifNoError(ScriptScopeContext, Object)
Declaration
public object ifNoError(ScriptScopeContext scope, object value)
Returns
System.Object
Parameters
ifError(ScriptScopeContext, Object)
Declaration
public object ifError(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
ifError(ScriptScopeContext)
Declaration
public object ifError(ScriptScopeContext scope)
Returns
System.Object
Parameters
ifDebug(ScriptScopeContext, Object)
Declaration
public object ifDebug(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
ifDebug(ScriptScopeContext)
Declaration
public object ifDebug(ScriptScopeContext scope)
Returns
System.Object
Parameters
debugMode(ScriptScopeContext)
Declaration
public object debugMode(ScriptScopeContext scope)
Returns
System.Object
Parameters
hasError(ScriptScopeContext)
Declaration
public bool hasError(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
lastError(ScriptScopeContext)
Declaration
public Exception lastError(ScriptScopeContext scope)
Returns
System.Exception
Parameters
lastErrorMessage(ScriptScopeContext)
Declaration
public string lastErrorMessage(ScriptScopeContext scope)
Returns
System.String
Parameters
lastErrorStackTrace(ScriptScopeContext)
Declaration
public string lastErrorStackTrace(ScriptScopeContext scope)
Returns
System.String
Parameters
ensureAllArgsNotNull(ScriptScopeContext, Object)
Declaration
public object ensureAllArgsNotNull(ScriptScopeContext scope, object args)
Returns
System.Object
Parameters
ensureAllArgsNotNull(ScriptScopeContext, Object, Object)
Declaration
public object ensureAllArgsNotNull(ScriptScopeContext scope, object args, object options)
Returns
System.Object
Parameters
ensureAnyArgsNotNull(ScriptScopeContext, Object)
Declaration
public object ensureAnyArgsNotNull(ScriptScopeContext scope, object args)
Returns
System.Object
Parameters
ensureAnyArgsNotNull(ScriptScopeContext, Object, Object)
Declaration
public object ensureAnyArgsNotNull(ScriptScopeContext scope, object args, object options)
Returns
System.Object
Parameters
ensureAllArgsNotEmpty(ScriptScopeContext, Object)
Declaration
public object ensureAllArgsNotEmpty(ScriptScopeContext scope, object args)
Returns
System.Object
Parameters
ensureAllArgsNotEmpty(ScriptScopeContext, Object, Object)
Declaration
public object ensureAllArgsNotEmpty(ScriptScopeContext scope, object args, object options)
Returns
System.Object
Parameters
ensureAnyArgsNotEmpty(ScriptScopeContext, Object)
Declaration
public object ensureAnyArgsNotEmpty(ScriptScopeContext scope, object args)
Returns
System.Object
Parameters
ensureAnyArgsNotEmpty(ScriptScopeContext, Object, Object)
Declaration
public object ensureAnyArgsNotEmpty(ScriptScopeContext scope, object args, object options)
Returns
System.Object
Parameters
ifThrow(ScriptScopeContext, Boolean, String)
Declaration
public object ifThrow(ScriptScopeContext scope, bool test, string message)
Returns
System.Object
Parameters
ifThrow(ScriptScopeContext, Boolean, String, Object)
Declaration
public object ifThrow(ScriptScopeContext scope, bool test, string message, object options)
Returns
System.Object
Parameters
throwIf(ScriptScopeContext, String, Boolean)
Declaration
public object throwIf(ScriptScopeContext scope, string message, bool test)
Returns
System.Object
Parameters
throwIf(ScriptScopeContext, String, Boolean, Object)
Declaration
public object throwIf(ScriptScopeContext scope, string message, bool test, object options)
Returns
System.Object
Parameters
ifThrowArgumentException(ScriptScopeContext, Boolean, String)
Declaration
public object ifThrowArgumentException(ScriptScopeContext scope, bool test, string message)
Returns
System.Object
Parameters
ifThrowArgumentException(ScriptScopeContext, Boolean, String, Object)
Declaration
public object ifThrowArgumentException(ScriptScopeContext scope, bool test, string message, object options)
Returns
System.Object
Parameters
ifThrowArgumentException(ScriptScopeContext, Boolean, String, String, Object)
Declaration
public object ifThrowArgumentException(ScriptScopeContext scope, bool test, string message, string paramName, object options)
Returns
System.Object
Parameters
ifThrowArgumentNullException(ScriptScopeContext, Boolean, String)
Declaration
public object ifThrowArgumentNullException(ScriptScopeContext scope, bool test, string paramName)
Returns
System.Object
Parameters
ifThrowArgumentNullException(ScriptScopeContext, Boolean, String, Object)
Declaration
public object ifThrowArgumentNullException(ScriptScopeContext scope, bool test, string paramName, object options)
Returns
System.Object
Parameters
throwArgumentNullExceptionIf(ScriptScopeContext, String, Boolean)
Declaration
public object throwArgumentNullExceptionIf(ScriptScopeContext scope, string paramName, bool test)
Returns
System.Object
Parameters
throwArgumentNullExceptionIf(ScriptScopeContext, String, Boolean, Object)
Declaration
public object throwArgumentNullExceptionIf(ScriptScopeContext scope, string paramName, bool test, object options)
Returns
System.Object
Parameters
throwArgumentException(ScriptScopeContext, String)
Declaration
public object throwArgumentException(ScriptScopeContext scope, string message)
Returns
System.Object
Parameters
throwArgumentException(ScriptScopeContext, String, String)
Declaration
public object throwArgumentException(ScriptScopeContext scope, string message, string options)
Returns
System.Object
Parameters
throwArgumentNullException(ScriptScopeContext, String)
Declaration
public object throwArgumentNullException(ScriptScopeContext scope, string paramName)
Returns
System.Object
Parameters
throwArgumentNullException(ScriptScopeContext, String, Object)
Declaration
public object throwArgumentNullException(ScriptScopeContext scope, string paramName, object options)
Returns
System.Object
Parameters
throwNotSupportedException(ScriptScopeContext, String)
Declaration
public object throwNotSupportedException(ScriptScopeContext scope, string message)
Returns
System.Object
Parameters
throwNotSupportedException(ScriptScopeContext, String, Object)
Declaration
public object throwNotSupportedException(ScriptScopeContext scope, string message, object options)
Returns
System.Object
Parameters
throwNotImplementedException(ScriptScopeContext, String)
Declaration
public object throwNotImplementedException(ScriptScopeContext scope, string message)
Returns
System.Object
Parameters
throwNotImplementedException(ScriptScopeContext, String, Object)
Declaration
public object throwNotImplementedException(ScriptScopeContext scope, string message, object options)
Returns
System.Object
Parameters
throwUnauthorizedAccessException(ScriptScopeContext, String)
Declaration
public object throwUnauthorizedAccessException(ScriptScopeContext scope, string message)
Returns
System.Object
Parameters
throwUnauthorizedAccessException(ScriptScopeContext, String, Object)
Declaration
public object throwUnauthorizedAccessException(ScriptScopeContext scope, string message, object options)
Returns
System.Object
Parameters
throwFileNotFoundException(ScriptScopeContext, String)
Declaration
public object throwFileNotFoundException(ScriptScopeContext scope, string message)
Returns
System.Object
Parameters
throwFileNotFoundException(ScriptScopeContext, String, Object)
Declaration
public object throwFileNotFoundException(ScriptScopeContext scope, string message, object options)
Returns
System.Object
Parameters
throwOptimisticConcurrencyException(ScriptScopeContext, String)
Declaration
public object throwOptimisticConcurrencyException(ScriptScopeContext scope, string message)
Returns
System.Object
Parameters
throwOptimisticConcurrencyException(ScriptScopeContext, String, Object)
Declaration
public object throwOptimisticConcurrencyException(ScriptScopeContext scope, string message, object options)
Returns
System.Object
Parameters
throwAsync(ScriptScopeContext, String)
Declaration
public async Task<object> throwAsync(ScriptScopeContext scope, string message)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
throwAsync(ScriptScopeContext, String, Object)
Declaration
public async Task<object> throwAsync(ScriptScopeContext scope, string message, object options)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
add(Object, Object)
Declaration
public object add(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
sub(Object, Object)
Declaration
public object sub(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
subtract(Object, Object)
Declaration
public object subtract(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
mul(Object, Object)
Declaration
public object mul(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
multiply(Object, Object)
Declaration
public object multiply(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | lhs |
System.Object | rhs |
div(Double, Double)
Declaration
public double div(double lhs, double rhs)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | lhs |
System.Double | rhs |
divide(Double, Double)
Declaration
public double divide(double lhs, double rhs)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | lhs |
System.Double | rhs |
incr(Int64)
Declaration
public long incr(long value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
increment(Int64)
Declaration
public long increment(long value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
incrBy(Int64, Int64)
Declaration
public long incrBy(long value, long by)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
System.Int64 | by |
incrementBy(Int64, Int64)
Declaration
public long incrementBy(long value, long by)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
System.Int64 | by |
decr(Int64)
Declaration
public long decr(long value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
decrement(Int64)
Declaration
public long decrement(long value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
decrBy(Int64, Int64)
Declaration
public long decrBy(long value, long by)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
System.Int64 | by |
decrementBy(Int64, Int64)
Declaration
public long decrementBy(long value, long by)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
System.Int64 | by |
mod(Int64, Int64)
Declaration
public long mod(long value, long divisor)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | value |
System.Int64 | divisor |
pi()
Returns
System.Double
e()
Returns
System.Double
floor(Double)
Declaration
public double floor(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
ceiling(Double)
Declaration
public double ceiling(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
abs(Double)
Declaration
public double abs(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
acos(Double)
Declaration
public double acos(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
atan(Double)
Declaration
public double atan(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
atan2(Double, Double)
Declaration
public double atan2(double y, double x)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | y |
System.Double | x |
cos(Double)
Declaration
public double cos(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
exp(Double)
Declaration
public double exp(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
log(Double)
Declaration
public double log(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
log(Double, Double)
Declaration
public double log(double a, double newBase)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | a |
System.Double | newBase |
log2(Double)
Declaration
public double log2(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
log10(Double)
Declaration
public double log10(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
pow(Double, Double)
Declaration
public double pow(double x, double y)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | x |
System.Double | y |
round(Double)
Declaration
public double round(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
round(Double, Int32)
Declaration
public double round(double value, int decimals)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
System.Int32 | decimals |
sign(Double)
Declaration
public int sign(double value)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Double | value |
sin(Double)
Declaration
public double sin(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
sinh(Double)
Declaration
public double sinh(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
sqrt(Double)
Declaration
public double sqrt(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
tan(Double)
Declaration
public double tan(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
tanh(Double)
Declaration
public double tanh(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
truncate(Double)
Declaration
public double truncate(double value)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | value |
intAdd(Int32, Int32)
Declaration
public int intAdd(int lhs, int rhs)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Int32 | lhs |
System.Int32 | rhs |
intSub(Int32, Int32)
Declaration
public int intSub(int lhs, int rhs)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Int32 | lhs |
System.Int32 | rhs |
intMul(Int32, Int32)
Declaration
public int intMul(int lhs, int rhs)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Int32 | lhs |
System.Int32 | rhs |
intDiv(Int32, Int32)
Declaration
public int intDiv(int lhs, int rhs)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Int32 | lhs |
System.Int32 | rhs |
longAdd(Int64, Int64)
Declaration
public long longAdd(long lhs, long rhs)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | lhs |
System.Int64 | rhs |
longSub(Int64, Int64)
Declaration
public long longSub(long lhs, long rhs)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | lhs |
System.Int64 | rhs |
longMul(Int64, Int64)
Declaration
public long longMul(long lhs, long rhs)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | lhs |
System.Int64 | rhs |
longDiv(Int64, Int64)
Declaration
public long longDiv(long lhs, long rhs)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int64 | lhs |
System.Int64 | rhs |
doubleAdd(Double, Double)
Declaration
public double doubleAdd(double lhs, double rhs)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | lhs |
System.Double | rhs |
doubleSub(Double, Double)
Declaration
public double doubleSub(double lhs, double rhs)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | lhs |
System.Double | rhs |
doubleMul(Double, Double)
Declaration
public double doubleMul(double lhs, double rhs)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | lhs |
System.Double | rhs |
doubleDiv(Double, Double)
Declaration
public double doubleDiv(double lhs, double rhs)
Returns
System.Double
Parameters
Type | Name |
---|
System.Double | lhs |
System.Double | rhs |
decimalAdd(Decimal, Decimal)
Declaration
public decimal decimalAdd(decimal lhs, decimal rhs)
Returns
System.Decimal
Parameters
Type | Name |
---|
System.Decimal | lhs |
System.Decimal | rhs |
decimalSub(Decimal, Decimal)
Declaration
public decimal decimalSub(decimal lhs, decimal rhs)
Returns
System.Decimal
Parameters
Type | Name |
---|
System.Decimal | lhs |
System.Decimal | rhs |
decimalMul(Decimal, Decimal)
Declaration
public decimal decimalMul(decimal lhs, decimal rhs)
Returns
System.Decimal
Parameters
Type | Name |
---|
System.Decimal | lhs |
System.Decimal | rhs |
decimalDiv(Decimal, Decimal)
Declaration
public decimal decimalDiv(decimal lhs, decimal rhs)
Returns
System.Decimal
Parameters
Type | Name |
---|
System.Decimal | lhs |
System.Decimal | rhs |
step(IEnumerable, Object)
Declaration
public List<object> step(IEnumerable target, object scopeOptions)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
System.Object | scopeOptions |
elementAt(IEnumerable, Int32)
Declaration
public object elementAt(IEnumerable target, int index)
Returns
System.Object
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
System.Int32 | index |
contains(Object, Object)
Declaration
public bool contains(object target, object needle)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Object | needle |
sequenceEquals(IEnumerable, IEnumerable)
Declaration
public bool sequenceEquals(IEnumerable a, IEnumerable b)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Collections.IEnumerable | a |
System.Collections.IEnumerable | b |
take(ScriptScopeContext, IEnumerable<Object>, Object)
Declaration
public IEnumerable<object> take(ScriptScopeContext scope, IEnumerable<object> original, object countOrBinding)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
skip(ScriptScopeContext, IEnumerable<Object>, Object)
Declaration
public IEnumerable<object> skip(ScriptScopeContext scope, IEnumerable<object> original, object countOrBinding)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
limit(ScriptScopeContext, IEnumerable<Object>, Object, Object)
Declaration
public IEnumerable<object> limit(ScriptScopeContext scope, IEnumerable<object> original, object skipOrBinding, object takeOrBinding)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
count(ScriptScopeContext, Object)
Declaration
public int count(ScriptScopeContext scope, object target)
Returns
System.Int32
Parameters
count(ScriptScopeContext, Object, Object)
Declaration
public int count(ScriptScopeContext scope, object target, object expression)
Returns
System.Int32
Parameters
count(ScriptScopeContext, Object, Object, Object)
Declaration
public int count(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Int32
Parameters
sum(ScriptScopeContext, Object)
Declaration
public object sum(ScriptScopeContext scope, object target)
Returns
System.Object
Parameters
sum(ScriptScopeContext, Object, Object)
Declaration
public object sum(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
sum(ScriptScopeContext, Object, Object, Object)
Declaration
public object sum(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
min(ScriptScopeContext, Object)
Declaration
public object min(ScriptScopeContext scope, object target)
Returns
System.Object
Parameters
min(ScriptScopeContext, Object, Object)
Declaration
public object min(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
min(ScriptScopeContext, Object, Object, Object)
Declaration
public object min(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
max(ScriptScopeContext, Object)
Declaration
public object max(ScriptScopeContext scope, object target)
Returns
System.Object
Parameters
max(ScriptScopeContext, Object, Object)
Declaration
public object max(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
max(ScriptScopeContext, Object, Object, Object)
Declaration
public object max(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
average(ScriptScopeContext, Object)
Declaration
public double average(ScriptScopeContext scope, object target)
Returns
System.Double
Parameters
average(ScriptScopeContext, Object, Object)
Declaration
public double average(ScriptScopeContext scope, object target, object expression)
Returns
System.Double
Parameters
average(ScriptScopeContext, Object, Object, Object)
Declaration
public double average(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Double
Parameters
reduce(ScriptScopeContext, Object, Object)
Declaration
public object reduce(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
reduce(ScriptScopeContext, Object, Object, Object)
Declaration
public object reduce(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
zip(ScriptScopeContext, IEnumerable, Object)
Declaration
public List<object[]> zip(ScriptScopeContext scope, IEnumerable original, object itemsOrBinding)
Returns
System.Collections.Generic.List<System.Object[]>
Parameters
flatten(Object)
Declaration
public List<object> flatten(object target)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Object | target |
flatten(Object, Int32)
Declaration
public List<object> flatten(object target, int depth)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|
System.Object | target |
System.Int32 | depth |
let(ScriptScopeContext, Object, Object)
Declaration
public object let(ScriptScopeContext scope, object target, object scopeBindings)
Returns
System.Object
Parameters
first(ScriptScopeContext, Object)
Declaration
public object first(ScriptScopeContext scope, object target)
Returns
System.Object
Parameters
first(ScriptScopeContext, Object, Object)
Declaration
public object first(ScriptScopeContext scope, object target, object expression)
Returns
System.Object
Parameters
first(ScriptScopeContext, Object, Object, Object)
Declaration
public object first(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Object
Parameters
last(ScriptScopeContext, Object)
Declaration
public object last(ScriptScopeContext scope, object target)
Returns
System.Object
Parameters
any(ScriptScopeContext, Object)
Declaration
public bool any(ScriptScopeContext scope, object target)
Returns
System.Boolean
Parameters
any(ScriptScopeContext, Object, Object)
Declaration
public bool any(ScriptScopeContext scope, object target, object expression)
Returns
System.Boolean
Parameters
any(ScriptScopeContext, Object, Object, Object)
Declaration
public bool any(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Boolean
Parameters
all(ScriptScopeContext, Object, Object)
Declaration
public bool all(ScriptScopeContext scope, object target, object expression)
Returns
System.Boolean
Parameters
all(ScriptScopeContext, Object, Object, Object)
Declaration
public bool all(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Boolean
Parameters
where(ScriptScopeContext, Object, Object)
Declaration
public IEnumerable<object> where(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
where(ScriptScopeContext, Object, Object, Object)
Declaration
public IEnumerable<object> where(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
takeWhile(ScriptScopeContext, Object, Object)
Declaration
public IEnumerable<object> takeWhile(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
takeWhile(ScriptScopeContext, Object, Object, Object)
Declaration
public IEnumerable<object> takeWhile(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
skipWhile(ScriptScopeContext, Object, Object)
Declaration
public IEnumerable<object> skipWhile(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
skipWhile(ScriptScopeContext, Object, Object, Object)
Declaration
public IEnumerable<object> skipWhile(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
orderBy(ScriptScopeContext, Object, Object)
Declaration
public IEnumerable<object> orderBy(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
orderBy(ScriptScopeContext, Object, Object, Object)
Declaration
public IEnumerable<object> orderBy(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
orderByDescending(ScriptScopeContext, Object, Object)
Declaration
public IEnumerable<object> orderByDescending(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
orderByDescending(ScriptScopeContext, Object, Object, Object)
Declaration
public IEnumerable<object> orderByDescending(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
orderByDesc(ScriptScopeContext, Object, Object)
Declaration
public IEnumerable<object> orderByDesc(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
orderByDesc(ScriptScopeContext, Object, Object, Object)
Declaration
public IEnumerable<object> orderByDesc(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
thenBy(ScriptScopeContext, Object, Object)
Declaration
public IEnumerable<object> thenBy(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
thenBy(ScriptScopeContext, Object, Object, Object)
Declaration
public IEnumerable<object> thenBy(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
thenByDescending(ScriptScopeContext, Object, Object)
Declaration
public IEnumerable<object> thenByDescending(ScriptScopeContext scope, object target, object expression)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
thenByDescending(ScriptScopeContext, Object, Object, Object)
Declaration
public IEnumerable<object> thenByDescending(ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
orderByInternal(String, ScriptScopeContext, Object, Object, Object)
Declaration
public static IEnumerable<object> orderByInternal(string filterName, ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
thenByInternal(String, ScriptScopeContext, Object, Object, Object)
Declaration
public static IEnumerable<object> thenByInternal(string filterName, ScriptScopeContext scope, object target, object expression, object scopeOptions)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
groupBy(ScriptScopeContext, IEnumerable<Object>, Object)
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
groupBy(ScriptScopeContext, IEnumerable<Object>, Object, Object)
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
equivalentTo(IEnumerable<Object>, IEnumerable<Object>)
Declaration
public bool equivalentTo(IEnumerable<object> target, IEnumerable<object> items)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | target |
System.Collections.Generic.IEnumerable<System.Object> | items |
distinct(IEnumerable<Object>)
Declaration
public IEnumerable<object> distinct(IEnumerable<object> items)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | items |
union(IEnumerable<Object>, IEnumerable<Object>)
Declaration
public IEnumerable<object> union(IEnumerable<object> target, IEnumerable<object> items)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | target |
System.Collections.Generic.IEnumerable<System.Object> | items |
intersect(IEnumerable<Object>, IEnumerable<Object>)
Declaration
public IEnumerable<object> intersect(IEnumerable<object> target, IEnumerable<object> items)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | target |
System.Collections.Generic.IEnumerable<System.Object> | items |
except(IEnumerable<Object>, IEnumerable<Object>)
Declaration
public IEnumerable<object> except(IEnumerable<object> target, IEnumerable<object> items)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | target |
System.Collections.Generic.IEnumerable<System.Object> | items |
concat(IEnumerable<Object>, IEnumerable<Object>)
Declaration
public IEnumerable<object> concat(IEnumerable<object> target, IEnumerable<object> items)
Returns
System.Collections.Generic.IEnumerable<System.Object>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | target |
System.Collections.Generic.IEnumerable<System.Object> | items |
concat(IEnumerable<String>)
Declaration
public string concat(IEnumerable<string> target)
Returns
System.String
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.String> | target |
get(Object, Object)
Declaration
public object get(object target, object key)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | target |
System.Object | key |
raw(Object)
Declaration
public IRawString raw(object value)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
appSetting(String)
Declaration
public string appSetting(string name)
Returns
System.String
Parameters
Type | Name |
---|
System.String | name |
indent()
Returns
System.String
indents(Int32)
Declaration
public string indents(int count)
Returns
System.String
Parameters
Type | Name |
---|
System.Int32 | count |
space()
Returns
System.String
spaces(Int32)
Declaration
public string spaces(int count)
Returns
System.String
Parameters
Type | Name |
---|
System.Int32 | count |
newLine()
Returns
System.String
newLines(Int32)
Declaration
public string newLines(int count)
Returns
System.String
Parameters
Type | Name |
---|
System.Int32 | count |
newLine(String)
Declaration
public string newLine(string target)
Returns
System.String
Parameters
Type | Name |
---|
System.String | target |
currency(Decimal)
Declaration
public string currency(decimal decimalValue)
Returns
System.String
Parameters
Type | Name |
---|
System.Decimal | decimalValue |
currency(Decimal, String)
Declaration
public string currency(decimal decimalValue, string culture)
Returns
System.String
Parameters
Type | Name |
---|
System.Decimal | decimalValue |
System.String | culture |
Declaration
public IRawString formatRaw(object obj, string fmt)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | obj |
System.String | fmt |
Declaration
public string format(object obj, string format)
Returns
System.String
Parameters
Type | Name |
---|
System.Object | obj |
System.String | format |
fmt(String, Object)
Declaration
public string fmt(string format, object arg)
Returns
System.String
Parameters
Type | Name |
---|
System.String | format |
System.Object | arg |
fmt(String, Object, Object)
Declaration
public string fmt(string format, object arg0, object arg1)
Returns
System.String
Parameters
Type | Name |
---|
System.String | format |
System.Object | arg0 |
System.Object | arg1 |
fmt(String, Object, Object, Object)
Declaration
public string fmt(string format, object arg0, object arg1, object arg2)
Returns
System.String
Parameters
Type | Name |
---|
System.String | format |
System.Object | arg0 |
System.Object | arg1 |
System.Object | arg2 |
append(String, String)
Declaration
public string append(string target, string suffix)
Returns
System.String
Parameters
Type | Name |
---|
System.String | target |
System.String | suffix |
appendLine(String)
Declaration
public string appendLine(string target)
Returns
System.String
Parameters
Type | Name |
---|
System.String | target |
appendFmt(String, String, Object)
Declaration
public string appendFmt(string target, string format, object arg)
Returns
System.String
Parameters
Type | Name |
---|
System.String | target |
System.String | format |
System.Object | arg |
appendFmt(String, String, Object, Object)
Declaration
public string appendFmt(string target, string format, object arg0, object arg1)
Returns
System.String
Parameters
Type | Name |
---|
System.String | target |
System.String | format |
System.Object | arg0 |
System.Object | arg1 |
appendFmt(String, String, Object, Object, Object)
Declaration
public string appendFmt(string target, string format, object arg0, object arg1, object arg2)
Returns
System.String
Parameters
Type | Name |
---|
System.String | target |
System.String | format |
System.Object | arg0 |
System.Object | arg1 |
System.Object | arg2 |
Declaration
public string dateFormat(DateTime dateValue)
Returns
System.String
Parameters
Type | Name |
---|
System.DateTime | dateValue |
Declaration
public string dateFormat(DateTime dateValue, string format)
Returns
System.String
Parameters
Type | Name |
---|
System.DateTime | dateValue |
System.String | format |
Declaration
public string dateTimeFormat(DateTime dateValue)
Returns
System.String
Parameters
Type | Name |
---|
System.DateTime | dateValue |
Declaration
public string timeFormat(TimeSpan timeValue)
Returns
System.String
Parameters
Type | Name |
---|
System.TimeSpan | timeValue |
Declaration
public string timeFormat(TimeSpan timeValue, string format)
Returns
System.String
Parameters
Type | Name |
---|
System.TimeSpan | timeValue |
System.String | format |
splitCase(String)
Declaration
public string splitCase(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
humanize(String)
Declaration
public string humanize(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
titleCase(String)
Declaration
public string titleCase(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
pascalCase(String)
Declaration
public string pascalCase(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
camelCase(String)
Declaration
public string camelCase(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
snakeCase(String)
Declaration
public string snakeCase(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
kebabCase(String)
Declaration
public string kebabCase(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
textStyle(String, String)
Declaration
public string textStyle(string text, string headerStyle)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.String | headerStyle |
lower(String)
Declaration
public string lower(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
upper(String)
Declaration
public string upper(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
substring(String, Int32)
Declaration
public string substring(string text, int startIndex)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | startIndex |
substring(String, Int32, Int32)
Declaration
public string substring(string text, int startIndex, int length)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | startIndex |
System.Int32 | length |
substringWithElipsis(String, Int32)
Declaration
[Obsolete("typo")]
public string substringWithElipsis(string text, int length)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | length |
substringWithElipsis(String, Int32, Int32)
Declaration
[Obsolete("typo")]
public string substringWithElipsis(string text, int startIndex, int length)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | startIndex |
System.Int32 | length |
substringWithEllipsis(String, Int32)
Declaration
public string substringWithEllipsis(string text, int length)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | length |
substringWithEllipsis(String, Int32, Int32)
Declaration
public string substringWithEllipsis(string text, int startIndex, int length)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | startIndex |
System.Int32 | length |
leftPart(String, String)
Declaration
public string leftPart(string text, string needle)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.String | needle |
rightPart(String, String)
Declaration
public string rightPart(string text, string needle)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.String | needle |
lastLeftPart(String, String)
Declaration
public string lastLeftPart(string text, string needle)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.String | needle |
lastRightPart(String, String)
Declaration
public string lastRightPart(string text, string needle)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.String | needle |
compareTo(String, String)
Declaration
public int compareTo(string text, string other)
Returns
System.Int32
Parameters
Type | Name |
---|
System.String | text |
System.String | other |
startsWith(String, String)
Declaration
public bool startsWith(string text, string needle)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | text |
System.String | needle |
endsWith(String, String)
Declaration
public bool endsWith(string text, string needle)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | text |
System.String | needle |
replace(String, String, String)
Declaration
public string replace(string text, string oldValue, string newValue)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.String | oldValue |
System.String | newValue |
trimStart(String)
Declaration
public string trimStart(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
trimStart(String, Char)
Declaration
public string trimStart(string text, char c)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Char | c |
trimEnd(String)
Declaration
public string trimEnd(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
trimEnd(String, Char)
Declaration
public string trimEnd(string text, char c)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Char | c |
trim(String)
Declaration
public string trim(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
trim(String, Char)
Declaration
public string trim(string text, char c)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Char | c |
padLeft(String, Int32)
Declaration
public string padLeft(string text, int totalWidth)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | totalWidth |
padLeft(String, Int32, Char)
Declaration
public string padLeft(string text, int totalWidth, char padChar)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | totalWidth |
System.Char | padChar |
padRight(String, Int32)
Declaration
public string padRight(string text, int totalWidth)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | totalWidth |
padRight(String, Int32, Char)
Declaration
public string padRight(string text, int totalWidth, char padChar)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | totalWidth |
System.Char | padChar |
splitOnFirst(String, String)
Declaration
public string[] splitOnFirst(string text, string needle)
Returns
System.String[]
Parameters
Type | Name |
---|
System.String | text |
System.String | needle |
splitOnLast(String, String)
Declaration
public string[] splitOnLast(string text, string needle)
Returns
System.String[]
Parameters
Type | Name |
---|
System.String | text |
System.String | needle |
split(String)
Declaration
public string[] split(string stringList)
Returns
System.String[]
Parameters
Type | Name |
---|
System.String | stringList |
split(String, Object)
Declaration
public string[] split(string stringList, object delimiter)
Returns
System.String[]
Parameters
Type | Name |
---|
System.String | stringList |
System.Object | delimiter |
glob(IEnumerable<String>, String)
Declaration
public string[] glob(IEnumerable<string> strings, string pattern)
Returns
System.String[]
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.String> | strings |
System.String | pattern |
globln(IEnumerable<String>, String)
Declaration
public string globln(IEnumerable<string> strings, string pattern)
Returns
System.String
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.String> | strings |
System.String | pattern |
parseKeyValueText(String)
Declaration
public Dictionary<string, string> parseKeyValueText(string target)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|
System.String | target |
parseKeyValueText(String, String)
Declaration
public Dictionary<string, string> parseKeyValueText(string target, string delimiter)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|
System.String | target |
System.String | delimiter |
parseAsKeyValues(String)
Declaration
public IEnumerable<KeyValuePair<string, string>> parseAsKeyValues(string target)
Returns
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>>
Parameters
Type | Name |
---|
System.String | target |
parseAsKeyValues(String, String)
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
Type | Name |
---|
System.String | target |
System.String | delimiter |
keys(Object)
Declaration
public ICollection keys(object target)
Returns
System.Collections.ICollection
Parameters
Type | Name |
---|
System.Object | target |
values(Object)
Declaration
public ICollection values(object target)
Returns
System.Collections.ICollection
Parameters
Type | Name |
---|
System.Object | target |
addPath(String, String)
Declaration
public string addPath(string target, string pathToAppend)
Returns
System.String
Parameters
Type | Name |
---|
System.String | target |
System.String | pathToAppend |
addPaths(String, IEnumerable)
Declaration
public string addPaths(string target, IEnumerable pathsToAppend)
Returns
System.String
Parameters
Type | Name |
---|
System.String | target |
System.Collections.IEnumerable | pathsToAppend |
addQueryString(String, Object)
Declaration
public string addQueryString(string url, object urlParams)
Returns
System.String
Parameters
Type | Name |
---|
System.String | url |
System.Object | urlParams |
addHashParams(String, Object)
Declaration
public string addHashParams(string url, object urlParams)
Returns
System.String
Parameters
Type | Name |
---|
System.String | url |
System.Object | urlParams |
setQueryString(String, Object)
Declaration
public string setQueryString(string url, object urlParams)
Returns
System.String
Parameters
Type | Name |
---|
System.String | url |
System.Object | urlParams |
setHashParams(String, Object)
Declaration
public string setHashParams(string url, object urlParams)
Returns
System.String
Parameters
Type | Name |
---|
System.String | url |
System.Object | urlParams |
repeating(Int32, String)
Declaration
public string repeating(int times, string text)
Returns
System.String
Parameters
Type | Name |
---|
System.Int32 | times |
System.String | text |
repeat(String, Int32)
Declaration
public string repeat(string text, int times)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
System.Int32 | times |
escapeSingleQuotes(String)
Declaration
public string escapeSingleQuotes(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
escapeDoubleQuotes(String)
Declaration
public string escapeDoubleQuotes(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
escapeBackticks(String)
Declaration
public string escapeBackticks(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
escapePrimeQuotes(String)
Declaration
public string escapePrimeQuotes(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
escapeNewLines(String)
Declaration
public string escapeNewLines(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
jsString(String)
Declaration
public IRawString jsString(string text)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.String | text |
jsQuotedString(String)
Declaration
public IRawString jsQuotedString(string text)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.String | text |
json(Object)
Declaration
public IRawString json(object value)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
json(Object, String)
Declaration
public IRawString json(object value, string jsconfig)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
System.String | jsconfig |
jsv(Object)
Declaration
public IRawString jsv(object value)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
jsv(Object, String)
Declaration
public IRawString jsv(object value, string jsconfig)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
System.String | jsconfig |
csv(Object)
Declaration
public IRawString csv(object value)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
dump(Object)
Declaration
public IRawString dump(object value)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
indentJson(Object)
Declaration
public IRawString indentJson(object value)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
indentJson(Object, String)
Declaration
public IRawString indentJson(object value, string jsconfig)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | value |
System.String | jsconfig |
json(ScriptScopeContext, Object)
Declaration
public Task json(ScriptScopeContext scope, object items)
Returns
System.Threading.Tasks.Task
Parameters
json(ScriptScopeContext, Object, String)
Declaration
public Task json(ScriptScopeContext scope, object items, string jsConfig)
Returns
System.Threading.Tasks.Task
Parameters
jsv(ScriptScopeContext, Object)
Declaration
public Task jsv(ScriptScopeContext scope, object items)
Returns
System.Threading.Tasks.Task
Parameters
jsv(ScriptScopeContext, Object, String)
Declaration
public Task jsv(ScriptScopeContext scope, object items, string jsConfig)
Returns
System.Threading.Tasks.Task
Parameters
dump(ScriptScopeContext, Object)
Declaration
public Task dump(ScriptScopeContext scope, object items)
Returns
System.Threading.Tasks.Task
Parameters
dump(ScriptScopeContext, Object, String)
Declaration
public Task dump(ScriptScopeContext scope, object items, string jsConfig)
Returns
System.Threading.Tasks.Task
Parameters
csv(ScriptScopeContext, Object)
Declaration
public Task csv(ScriptScopeContext scope, object items)
Returns
System.Threading.Tasks.Task
Parameters
xml(ScriptScopeContext, Object)
Declaration
public Task xml(ScriptScopeContext scope, object items)
Returns
System.Threading.Tasks.Task
Parameters
jsonToObject(String)
Declaration
public JsonObject jsonToObject(string json)
Returns
ServiceStack.Text.JsonObject
Parameters
Type | Name |
---|
System.String | json |
jsonToArrayObjects(String)
Declaration
public JsonArrayObjects jsonToArrayObjects(string json)
Returns
ServiceStack.Text.JsonArrayObjects
Parameters
Type | Name |
---|
System.String | json |
jsonToObjectDictionary(String)
Declaration
public Dictionary<string, object> jsonToObjectDictionary(string json)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|
System.String | json |
jsonToStringDictionary(String)
Declaration
public Dictionary<string, string> jsonToStringDictionary(string json)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|
System.String | json |
jsvToObjectDictionary(String)
Declaration
public Dictionary<string, object> jsvToObjectDictionary(string json)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|
System.String | json |
jsvToStringDictionary(String)
Declaration
public Dictionary<string, string> jsvToStringDictionary(string json)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|
System.String | json |
eval(ScriptScopeContext, String)
Declaration
public object eval(ScriptScopeContext scope, string js)
Returns
System.Object
Parameters
parseJson(String)
Declaration
public object parseJson(string json)
Returns
System.Object
Parameters
Type | Name |
---|
System.String | json |
base64(Byte[])
Declaration
public string base64(byte[] bytes)
Returns
System.String
Parameters
Type | Name |
---|
System.Byte[] | bytes |
fromBase64(String)
Declaration
public byte[] fromBase64(string base64)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | base64 |
parseCsv(String)
Declaration
public List<List<string>> parseCsv(string csv)
Returns
System.Collections.Generic.List<System.Collections.Generic.List<System.String>>
Parameters
parseKeyValues(String)
Declaration
public List<KeyValuePair<string, string>> parseKeyValues(string keyValuesText)
Returns
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String,System.String>>
Parameters
Type | Name |
---|
System.String | keyValuesText |
parseKeyValues(String, String)
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
Type | Name |
---|
System.String | keyValuesText |
System.String | delimiter |
generateSlug(String)
Declaration
public string generateSlug(string phrase)
Returns
System.String
Parameters
Type | Name |
---|
System.String | phrase |
isBinary(String)
Declaration
public bool isBinary(string fileOrExt)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | fileOrExt |
contentType(String)
Declaration
public string contentType(string fileOrExt)
Returns
System.String
Parameters
Type | Name |
---|
System.String | fileOrExt |
splitLines(String)
Declaration
public static string[] splitLines(string contents)
Returns
System.String[]
Parameters
Type | Name |
---|
System.String | contents |
readLines(String)
Declaration
public IEnumerable<string> readLines(string contents)
Returns
System.Collections.Generic.IEnumerable<System.String>
Parameters
Type | Name |
---|
System.String | contents |
textList(IEnumerable)
Declaration
public IRawString textList(IEnumerable target)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
textList(IEnumerable, Dictionary<String, Object>)
Declaration
public IRawString textList(IEnumerable target, Dictionary<string, object> options)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Collections.IEnumerable | target |
System.Collections.Generic.Dictionary<System.String,System.Object> | options |
textDump(Object)
Declaration
public IRawString textDump(object target)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | target |
textDump(Object, Dictionary<String, Object>)
Declaration
public IRawString textDump(object target, Dictionary<string, object> options)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Object | target |
System.Collections.Generic.Dictionary<System.String,System.Object> | options |
TextList(IEnumerable, TextDumpOptions)
Declaration
public static string TextList(IEnumerable items, TextDumpOptions options)
Returns
System.String
Parameters
TextDump(Object, TextDumpOptions)
Declaration
public static string TextDump(object target, TextDumpOptions options)
Returns
System.String
Parameters
matchesPathInfo(ScriptScopeContext, String)
Declaration
public bool matchesPathInfo(ScriptScopeContext scope, string pathInfo)
Returns
System.Boolean
Parameters
startsWithPathInfo(ScriptScopeContext, String)
Declaration
public bool startsWithPathInfo(ScriptScopeContext scope, string pathInfo)
Returns
System.Boolean
Parameters
ifMatchesPathInfo(ScriptScopeContext, Object, String)
Declaration
public object ifMatchesPathInfo(ScriptScopeContext scope, object returnTarget, string pathInfo)
Returns
System.Object
Parameters
isHttpGet(ScriptScopeContext)
Declaration
public bool isHttpGet(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
isHttpPost(ScriptScopeContext)
Declaration
public bool isHttpPost(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
isHttpPut(ScriptScopeContext)
Declaration
public bool isHttpPut(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
isHttpDelete(ScriptScopeContext)
Declaration
public bool isHttpDelete(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
isHttpPatch(ScriptScopeContext)
Declaration
public bool isHttpPatch(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
ifHttpGet(ScriptScopeContext, Object)
Declaration
public object ifHttpGet(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
ifHttpGet(ScriptScopeContext)
Declaration
public object ifHttpGet(ScriptScopeContext scope)
Returns
System.Object
Parameters
ifHttpPost(ScriptScopeContext, Object)
Declaration
public object ifHttpPost(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
ifHttpPost(ScriptScopeContext)
Declaration
public object ifHttpPost(ScriptScopeContext scope)
Returns
System.Object
Parameters
ifHttpPut(ScriptScopeContext, Object)
Declaration
public object ifHttpPut(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
ifHttpPut(ScriptScopeContext)
Declaration
public object ifHttpPut(ScriptScopeContext scope)
Returns
System.Object
Parameters
ifHttpDelete(ScriptScopeContext, Object)
Declaration
public object ifHttpDelete(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
ifHttpDelete(ScriptScopeContext)
Declaration
public object ifHttpDelete(ScriptScopeContext scope)
Returns
System.Object
Parameters
ifHttpPatch(ScriptScopeContext, Object)
Declaration
public object ifHttpPatch(ScriptScopeContext scope, object ignoreTarget)
Returns
System.Object
Parameters
ifHttpPatch(ScriptScopeContext)
Declaration
public object ifHttpPatch(ScriptScopeContext scope)
Returns
System.Object
Parameters
importRequestParams(ScriptScopeContext)
Declaration
public object importRequestParams(ScriptScopeContext scope)
Returns
System.Object
Parameters
importRequestParams(ScriptScopeContext, IEnumerable)
Declaration
public object importRequestParams(ScriptScopeContext scope, IEnumerable onlyImportArgNames)
Returns
System.Object
Parameters
requestBody(ScriptScopeContext)
Declaration
public Stream requestBody(ScriptScopeContext scope)
Returns
System.IO.Stream
Parameters
rawBodyAsString(ScriptScopeContext)
Declaration
public string rawBodyAsString(ScriptScopeContext scope)
Returns
System.String
Parameters
rawBodyAsJson(ScriptScopeContext)
Declaration
public object rawBodyAsJson(ScriptScopeContext scope)
Returns
System.Object
Parameters
requestBodyAsString(ScriptScopeContext)
Declaration
public async Task<object> requestBodyAsString(ScriptScopeContext scope)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
requestBodyAsJson(ScriptScopeContext)
Declaration
public async Task<object> requestBodyAsJson(ScriptScopeContext scope)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
form(ScriptScopeContext)
Declaration
public NameValueCollection form(ScriptScopeContext scope)
Returns
System.Collections.Specialized.NameValueCollection
Parameters
query(ScriptScopeContext)
Declaration
public NameValueCollection query(ScriptScopeContext scope)
Returns
System.Collections.Specialized.NameValueCollection
Parameters
qs(ScriptScopeContext)
Declaration
public NameValueCollection qs(ScriptScopeContext scope)
Returns
System.Collections.Specialized.NameValueCollection
Parameters
queryString(ScriptScopeContext)
Declaration
public string queryString(ScriptScopeContext scope)
Returns
System.String
Parameters
queryDictionary(ScriptScopeContext)
Declaration
public Dictionary<string, object> queryDictionary(ScriptScopeContext scope)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
formDictionary(ScriptScopeContext)
Declaration
public Dictionary<string, object> formDictionary(ScriptScopeContext scope)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
toQueryString(Object)
Declaration
public string toQueryString(object keyValuePairs)
Returns
System.String
Parameters
Type | Name |
---|
System.Object | keyValuePairs |
toCoercedDictionary(Object)
Declaration
public Dictionary<string, object> toCoercedDictionary(object target)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|
System.Object | target |
coerce(String)
Declaration
public object coerce(string str)
Returns
System.Object
Parameters
httpMethod(ScriptScopeContext)
Declaration
public string httpMethod(ScriptScopeContext scope)
Returns
System.String
Parameters
httpRequestUrl(ScriptScopeContext)
Declaration
public string httpRequestUrl(ScriptScopeContext scope)
Returns
System.String
Parameters
httpPathInfo(ScriptScopeContext)
Declaration
public string httpPathInfo(ScriptScopeContext scope)
Returns
System.String
Parameters
formQuery(ScriptScopeContext, String)
Declaration
public string formQuery(ScriptScopeContext scope, string name)
Returns
System.String
Parameters
formQueryValues(ScriptScopeContext, String)
Declaration
public string[] formQueryValues(ScriptScopeContext scope, string name)
Returns
System.String[]
Parameters
httpParam(ScriptScopeContext, String)
Declaration
public string httpParam(ScriptScopeContext scope, string name)
Returns
System.String
Parameters
urlEncode(String, Boolean)
Declaration
public string urlEncode(string value, bool upperCase)
Returns
System.String
Parameters
Type | Name |
---|
System.String | value |
System.Boolean | upperCase |
urlEncode(String)
Declaration
public string urlEncode(string value)
Returns
System.String
Parameters
Type | Name |
---|
System.String | value |
urlDecode(String)
Declaration
public string urlDecode(string value)
Returns
System.String
Parameters
Type | Name |
---|
System.String | value |
htmlEncode(String)
Declaration
public string htmlEncode(string value)
Returns
System.String
Parameters
Type | Name |
---|
System.String | value |
htmlDecode(String)
Declaration
public string htmlDecode(string value)
Returns
System.String
Parameters
Type | Name |
---|
System.String | value |
containsXss(Object)
Declaration
public bool containsXss(object target)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
MatchesStringValue(Object, Func<String, Boolean>)
Declaration
public static bool MatchesStringValue(object target, Func<string, bool> match)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | target |
System.Func<System.String,System.Boolean> | match |
ContainsXss(String)
Declaration
public static bool ContainsXss(string text)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | text |
navItems()
Declaration
public List<NavItem> navItems()
Returns
System.Collections.Generic.List<ServiceStack.NavItem>
navItems(String)
Declaration
public List<NavItem> navItems(string key)
Returns
System.Collections.Generic.List<ServiceStack.NavItem>
Parameters
cssIncludes(IEnumerable)
Declaration
public IRawString cssIncludes(IEnumerable cssFiles)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Collections.IEnumerable | cssFiles |
jsIncludes(IEnumerable)
Declaration
public IRawString jsIncludes(IEnumerable jsFiles)
Returns
ServiceStack.IRawString
Parameters
Type | Name |
---|
System.Collections.IEnumerable | jsFiles |
Inherited Methods
GetInvoker(String, Int32, InvokerType)
Declaration
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns
ServiceStack.MethodInvoker
Parameters
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns
System.Collections.Generic.List<System.Reflection.MethodInfo>
Parameters
Type | Name |
---|
System.String | filterName |
Implements