Skip to main content

HtmlPageFormat

Assembly: ServiceStack.Common.dll
View Source
Declaration
public class HtmlPageFormat : PageFormat

Inherited Properties

ArgsPrefix

View Source
Declaration
public string ArgsPrefix { get; set; }

ArgsSuffix

View Source
Declaration
public string ArgsSuffix { get; set; }

ContentType

View Source
Declaration
public string ContentType { get; set; }

EncodeValue

View Source
Declaration
public Func<object, string> EncodeValue { get; set; }

Extension

View Source
Declaration
public string Extension { 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; }

ResolveLayout

View Source
Declaration
public Func<SharpPage, SharpPage> ResolveLayout { get; set; }

Methods

HtmlEncodeValue(Object)

View Source
Declaration
public static string HtmlEncodeValue(object value)
Returns

System.String

Parameters
TypeName
System.Objectvalue

HtmlResolveLayout(SharpPage)

View Source
Declaration
public SharpPage HtmlResolveLayout(SharpPage page)
Returns

ServiceStack.Script.SharpPage

Parameters
TypeName
ServiceStack.Script.SharpPagepage

HtmlExpressionException(PageResult, Exception)

View Source
Declaration
public virtual object HtmlExpressionException(PageResult result, Exception ex)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.PageResultresult
System.Exceptionex

HtmlEncodeTransformer(Stream)

View Source
Declaration
public static async Task<Stream> HtmlEncodeTransformer(Stream stream)
Returns

System.Threading.Tasks.Task<System.IO.Stream>

Parameters
TypeName
System.IO.Streamstream

Inherited Methods

DefaultEncodeValue(Object)

View Source
Declaration
public string DefaultEncodeValue(object value)
Returns

System.String

Parameters
TypeName
System.Objectvalue

DefaultExpressionException(PageResult, Exception)

View Source
Declaration
public virtual object DefaultExpressionException(PageResult result, Exception ex)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.PageResultresult
System.Exceptionex

DefaultResolveLayout(SharpPage)

View Source
Declaration
public SharpPage DefaultResolveLayout(SharpPage page)
Returns

ServiceStack.Script.SharpPage

Parameters
TypeName
ServiceStack.Script.SharpPagepage

DefaultViewException(PageResult, IRequest, Exception)

View Source
Declaration
public virtual async Task DefaultViewException(PageResult pageResult, IRequest req, Exception ex)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Script.PageResultpageResult
ServiceStack.Web.IRequestreq
System.Exceptionex