Skip to main content

RenderingPage

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public abstract class RenderingPage

Properties

Request

View Source
Declaration
public IRequest Request { get; set; }

Response

View Source
Declaration
public IResponse Response { get; set; }

Output

View Source
Declaration
public virtual StreamWriter Output { get; set; }

ViewBag

View Source
Declaration
public dynamic ViewBag { get; set; }

TypedViewBag

View Source
Declaration
public IViewBag TypedViewBag { get; }

ParentPage

View Source
Declaration
public IRazorView ParentPage { get; set; }

ChildPage

View Source
Declaration
public IRazorView ChildPage { get; set; }

ChildBody

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

Fields

WriteLiteralFn

View Source
Declaration
public static Action<RenderingPage, string> WriteLiteralFn

WriteLiteralToFn

View Source
Declaration
public static Action<RenderingPage, TextWriter, string> WriteLiteralToFn

childSections

View Source
Declaration
public Dictionary<string, Action> childSections

Methods

Execute()

View Source
Declaration
public abstract void Execute()

DefaultWriteLiteral(RenderingPage, String)

View Source
Declaration
public static void DefaultWriteLiteral(RenderingPage page, string str)
Parameters
TypeName
ServiceStack.Razor.RenderingPagepage
System.Stringstr

DefaultWriteLiteralTo(RenderingPage, TextWriter, String)

View Source
Declaration
public static void DefaultWriteLiteralTo(RenderingPage page, TextWriter writer, string str)
Parameters
TypeName
ServiceStack.Razor.RenderingPagepage
System.IO.TextWriterwriter
System.Stringstr

WriteLiteral(String)

View Source
Declaration
public virtual void WriteLiteral(string str)
Parameters
TypeName
System.Stringstr

Write(Object)

View Source
Declaration
public virtual void Write(object obj)
Parameters
TypeName
System.Objectobj

WriteTo(TextWriter, Object)

View Source
Declaration
public virtual void WriteTo(TextWriter writer, object obj)
Parameters
TypeName
System.IO.TextWriterwriter
System.Objectobj

WriteTo(TextWriter, HelperResult)

View Source
Declaration
public virtual void WriteTo(TextWriter writer, HelperResult value)
Parameters
TypeName
System.IO.TextWriterwriter
ServiceStack.Html.HelperResultvalue

WriteLiteralTo(TextWriter, HelperResult)

View Source
Declaration
public virtual void WriteLiteralTo(TextWriter writer, HelperResult value)
Parameters
TypeName
System.IO.TextWriterwriter
ServiceStack.Html.HelperResultvalue

WriteLiteralTo(TextWriter, String)

View Source
Declaration
public void WriteLiteralTo(TextWriter writer, string literal)
Parameters
TypeName
System.IO.TextWriterwriter
System.Stringliteral

WriteAttribute(String, Tuple<String, Int32>, Tuple<String, Int32>, AttributeValue[])

View Source
Declaration
public virtual void WriteAttribute(string name, Tuple<string, int> prefix, Tuple<string, int> suffix, params AttributeValue[] values)
Parameters
TypeName
System.Stringname
System.Tuple<System.String,System.Int32>prefix
System.Tuple<System.String,System.Int32>suffix
ServiceStack.Razor.AttributeValue[]values

WriteAttributeTo(TextWriter, String, Tuple<String, Int32>, Tuple<String, Int32>, AttributeValue[])

View Source
Declaration
public virtual void WriteAttributeTo(TextWriter writer, string name, Tuple<string, int> prefix, Tuple<string, int> suffix, params AttributeValue[] values)
Parameters
TypeName
System.IO.TextWriterwriter
System.Stringname
System.Tuple<System.String,System.Int32>prefix
System.Tuple<System.String,System.Int32>suffix
ServiceStack.Razor.AttributeValue[]values

SetChildPage(IRazorView, String)

View Source
Declaration
public void SetChildPage(IRazorView childPage, string childBody)
Parameters
TypeName
ServiceStack.Html.IRazorViewchildPage
System.StringchildBody

RenderBody()

View Source
Declaration
public object RenderBody()
Returns

System.Object

IsSectionDefined(String)

View Source
Declaration
public virtual bool IsSectionDefined(string sectionName)
Returns

System.Boolean

Parameters
TypeName
System.StringsectionName

DefineSection(String, Action)

View Source
Declaration
public virtual void DefineSection(string sectionName, Action action)
Parameters
TypeName
System.StringsectionName
System.Actionaction

RenderSection(String, Boolean)

View Source
Declaration
public object RenderSection(string sectionName, bool required)
Returns

System.Object

Parameters
TypeName
System.StringsectionName
System.Booleanrequired

RenderSection(String)

View Source
Declaration
public object RenderSection(string sectionName)
Returns

System.Object

Parameters
TypeName
System.StringsectionName

RenderChildSection(String, StreamWriter)

View Source
Declaration
public void RenderChildSection(string sectionName, StreamWriter writer)
Parameters
TypeName
System.StringsectionName
System.IO.StreamWriterwriter