PageFormat
Assembly: ServiceStack.Common.dll
View Source
Declaration
public class PageFormat
Properties
ArgsPrefix
View Source
Declaration
public string ArgsPrefix { get; set; }
ArgsSuffix
View Source
Declaration
public string ArgsSuffix { get; set; }
Extension
View Source
Declaration
public string Extension { get; set; }
ContentType
View Source
Declaration
public string ContentType { get; set; }
EncodeValue
View Source
Declaration
public Func<object, string> EncodeValue { get; set; }
ResolveLayout
View Source
Declaration
public Func<SharpPage, SharpPage> ResolveLayout { get; set; }
OnExpressionException
View Source
Declaration
public Func<PageResult, Exception, object> OnExpressionException { get; set; }
OnViewException
View Source
Declaration
public Func<PageResult, IRequest, Exception, Task> OnViewException { get; set; }
Methods
DefaultEncodeValue(Object)
View Source
Declaration
public string DefaultEncodeValue(object value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | value |
DefaultResolveLayout(SharpPage)
View Source
Declaration
public SharpPage DefaultResolveLayout(SharpPage page)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.SharpPage | page |
DefaultExpressionException(PageResult, Exception)
View Source
Declaration
public virtual object DefaultExpressionException(PageResult result, Exception ex)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Script.PageResult | result |
System.Exception | ex |
DefaultViewException(PageResult, IRequest, Exception)
View Source
Declaration
public virtual async Task DefaultViewException(PageResult pageResult, IRequest req, Exception ex)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Script.PageResult | pageResult |
ServiceStack.Web.IRequest | req |
System.Exception | ex |