Skip to main content

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​
TypeName
ServiceStack.Script.ScriptContextcontext
ServiceStack.IAppHostappHost

UseAppHost(ScriptContext, IAppHost)​

View Source​
Declaration
public static ScriptContext UseAppHost(this ScriptContext context, IAppHost appHost)
Returns​

ServiceStack.Script.ScriptContext

Parameters​
TypeName
ServiceStack.Script.ScriptContextcontext
ServiceStack.IAppHostappHost

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​
TypeName
ServiceStack.Web.IRequestrequest
System.BooleanimportRequestParams

GetCodePage(IRequest, String)​

View Source​
Declaration
public static SharpCodePage GetCodePage(this IRequest request, string virtualPath)
Returns​

ServiceStack.Script.SharpCodePage

Parameters​
TypeName
ServiceStack.Web.IRequestrequest
System.StringvirtualPath

GetPage(IRequest, String)​

View Source​
Declaration
public static SharpPage GetPage(this IRequest request, string virtualPath)
Returns​

ServiceStack.Script.SharpPage

Parameters​
TypeName
ServiceStack.Web.IRequestrequest
System.StringvirtualPath

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​
TypeName
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​
TypeName
ServiceStack.Script.PageResultresult
ServiceStack.Web.IRequestrequest

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​
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>args
ServiceStack.Web.IRequestrequest

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​
TypeName
ServiceStack.Web.IRequestrequest
System.StringvirtualPath
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​

ServiceStack.Script.SharpPage

Parameters​
TypeName
ServiceStack.Web.IRequestrequest
System.Stringcontents
System.Stringext

With(SharpCodePage, IRequest)​

View Source​
Declaration
public static SharpCodePage With(this SharpCodePage page, IRequest request)
Returns​

ServiceStack.Script.SharpCodePage

Parameters​
TypeName
ServiceStack.Script.SharpCodePagepage
ServiceStack.Web.IRequestrequest

GetServiceStackFilters(ScriptContext)​

View Source​
Declaration
public static ServiceStackScripts GetServiceStackFilters(this ScriptContext context)
Returns​

ServiceStack.ServiceStackScripts

Parameters​
TypeName
ServiceStack.Script.ScriptContextcontext