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
Type | Name |
---|---|
ServiceStack.Razor.RenderingPage | page |
System.String | str |
DefaultWriteLiteralTo(RenderingPage, TextWriter, String)
View Source
Declaration
public static void DefaultWriteLiteralTo(RenderingPage page, TextWriter writer, string str)
Parameters
Type | Name |
---|---|
ServiceStack.Razor.RenderingPage | page |
System.IO.TextWriter | writer |
System.String | str |
WriteLiteral(String)
View Source
Declaration
public virtual void WriteLiteral(string str)
Parameters
Type | Name |
---|---|
System.String | str |
Write(Object)
View Source
Declaration
public virtual void Write(object obj)
Parameters
Type | Name |
---|---|
System.Object | obj |
WriteTo(TextWriter, Object)
View Source
Declaration
public virtual void WriteTo(TextWriter writer, object obj)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | obj |
WriteTo(TextWriter, HelperResult)
View Source
Declaration
public virtual void WriteTo(TextWriter writer, HelperResult value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
ServiceStack.Html.HelperResult | value |
WriteLiteralTo(TextWriter, HelperResult)
View Source
Declaration
public virtual void WriteLiteralTo(TextWriter writer, HelperResult value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
ServiceStack.Html.HelperResult | value |
WriteLiteralTo(TextWriter, String)
View Source
Declaration
public void WriteLiteralTo(TextWriter writer, string literal)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.String | literal |
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
Type | Name |
---|---|
System.String | name |
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
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.String | name |
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
Type | Name |
---|---|
ServiceStack.Html.IRazorView | childPage |
System.String | childBody |
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
Type | Name |
---|---|
System.String | sectionName |
DefineSection(String, Action)
View Source
Declaration
public virtual void DefineSection(string sectionName, Action action)
Parameters
Type | Name |
---|---|
System.String | sectionName |
System.Action | action |
RenderSection(String, Boolean)
View Source
Declaration
public object RenderSection(string sectionName, bool required)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | sectionName |
System.Boolean | required |
RenderSection(String)
View Source
Declaration
public object RenderSection(string sectionName)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | sectionName |
RenderChildSection(String, StreamWriter)
View Source
Declaration
public void RenderChildSection(string sectionName, StreamWriter writer)
Parameters
Type | Name |
---|---|
System.String | sectionName |
System.IO.StreamWriter | writer |