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
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
WithDefaults(NavOptions, IRequest)
View Source
Declaration
public static NavOptions WithDefaults(this NavOptions options, IRequest request)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.NavOptions | options |
ServiceStack.Web.IRequest | request |
GetRequest(ScriptScopeContext)
View Source
Declaration
public static IRequest GetRequest(this ScriptScopeContext scope)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
GetHttpRequest(ScriptScopeContext)
View Source
Declaration
public static IHttpRequest GetHttpRequest(this ScriptScopeContext scope)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
ResolveUrl(ScriptScopeContext, String)
View Source
Declaration
public static string ResolveUrl(this ScriptScopeContext scope, string url)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | url |
GetErrorStatus(ScriptScopeContext)
View Source
Declaration
public static ResponseStatus GetErrorStatus(this ScriptScopeContext scope)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |