SharpPagesFeatureExtensions
Assembly: ServiceStack.dll
View Source
Declaration
public static class SharpPagesFeatureExtensions
Methods
InitForSharpPages(ScriptContext, IAppHost)
View Source
Declaration
public static ScriptContext InitForSharpPages(this ScriptContext context, IAppHost appHost)
Returns
ServiceStack.Script.ScriptContext
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
ServiceStack.IAppHost | appHost |
UseAppHost(ScriptContext, IAppHost)
View Source
Declaration
public static ScriptContext UseAppHost(this ScriptContext context, IAppHost appHost)
Returns
ServiceStack.Script.ScriptContext
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
ServiceStack.IAppHost | appHost |
GetScriptRequestParams(IRequest, Boolean)
View Source
Declaration
public static Dictionary<string, object> GetScriptRequestParams(this IRequest request, bool importRequestParams = false)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
System.Boolean | importRequestParams |
GetCodePage(IRequest, String)
View Source
Declaration
public static SharpCodePage GetCodePage(this IRequest request, string virtualPath)
Returns
ServiceStack.Script.SharpCodePage
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
System.String | virtualPath |
GetPage(IRequest, String)
View Source
Declaration
public static SharpPage GetPage(this IRequest request, string virtualPath)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
System.String | virtualPath |
CreateRequestArgs(Dictionary<String, Object>)
View Source
Declaration
public static Dictionary<string, object> CreateRequestArgs(Dictionary<string, object> args)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | args |
BindRequest(PageResult, IRequest)
View Source
Declaration
public static PageResult BindRequest(this PageResult result, IRequest request)
Returns
ServiceStack.Script.PageResult
Parameters
Type | Name |
---|---|
ServiceStack.Script.PageResult | result |
ServiceStack.Web.IRequest | request |
SetRequestArgs(Dictionary<String, Object>, IRequest)
View Source
Declaration
public static Dictionary<string, object> SetRequestArgs(Dictionary<string, object> args, IRequest request)
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | args |
ServiceStack.Web.IRequest | request |
GetPageResult(IRequest, String, Dictionary<String, Object>)
View Source
Declaration
public static PageResult GetPageResult(this IRequest request, string virtualPath, Dictionary<string, object> args = null)
Returns
ServiceStack.Script.PageResult
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
System.String | virtualPath |
System.Collections.Generic.Dictionary<System.String,System.Object> | args |
OneTimePage(IRequest, String, String)
View Source
Declaration
public static SharpPage OneTimePage(this IRequest request, string contents, string ext = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
System.String | contents |
System.String | ext |
With(SharpCodePage, IRequest)
View Source
Declaration
public static SharpCodePage With(this SharpCodePage page, IRequest request)
Returns
ServiceStack.Script.SharpCodePage
Parameters
Type | Name |
---|---|
ServiceStack.Script.SharpCodePage | page |
ServiceStack.Web.IRequest | request |
GetServiceStackFilters(ScriptContext)
View Source
Declaration
public static ServiceStackScripts GetServiceStackFilters(this ScriptContext context)
Returns
ServiceStack.ServiceStackScripts
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |