Skip to main content

ServiceStackScriptUtils

Assembly: ServiceStack.dll
View Source
Declaration
public static class ServiceStackScriptUtils

Methods

GetUserAttributes(IRequest)

View Source
Declaration
public static HashSet<string> GetUserAttributes(this IRequest request)
Returns

System.Collections.Generic.HashSet<System.String>

Parameters
TypeName
ServiceStack.Web.IRequestrequest

WithDefaults(NavOptions, IRequest)

View Source
Declaration
public static NavOptions WithDefaults(this NavOptions options, IRequest request)
Returns

ServiceStack.NavOptions

Parameters
TypeName
ServiceStack.NavOptionsoptions
ServiceStack.Web.IRequestrequest

GetRequest(ScriptScopeContext)

View Source
Declaration
public static IRequest GetRequest(this ScriptScopeContext scope)
Returns

ServiceStack.Web.IRequest

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

GetHttpRequest(ScriptScopeContext)

View Source
Declaration
public static IHttpRequest GetHttpRequest(this ScriptScopeContext scope)
Returns

ServiceStack.Web.IHttpRequest

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

ResolveUrl(ScriptScopeContext, String)

View Source
Declaration
public static string ResolveUrl(this ScriptScopeContext scope, string url)
Returns

System.String

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringurl

GetErrorStatus(ScriptScopeContext)

View Source
Declaration
public static ResponseStatus GetErrorStatus(this ScriptScopeContext scope)
Returns

ServiceStack.ResponseStatus

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope