C# Class Codestellation.Ether.Templating.Razor.RazorMailTemplateBase

Show file Open project: Codestellation/Ether

Public Methods

Method Description
DefineSection ( string name, System.Action action ) : void
Execute ( ) : void
RenderBody ( ) : string
RenderSection ( string name, bool isRequired = true ) : string
SetContext ( RenderContext context ) : void
SetModel ( object model ) : void

Protected Methods

Method Description
Write ( object value ) : void
WriteLiteral ( object value ) : void

Method Details

DefineSection() public method

public DefineSection ( string name, System.Action action ) : void
name string
action System.Action
return void

Execute() public abstract method

public abstract Execute ( ) : void
return void

RenderBody() public method

public RenderBody ( ) : string
return string

RenderSection() public method

public RenderSection ( string name, bool isRequired = true ) : string
name string
isRequired bool
return string

SetContext() public method

public SetContext ( RenderContext context ) : void
context RenderContext
return void

SetModel() public abstract method

public abstract SetModel ( object model ) : void
model object
return void

Write() protected method

protected Write ( object value ) : void
value object
return void

WriteLiteral() protected method

protected WriteLiteral ( object value ) : void
value object
return void