C# Class EmailModule.EmailTemplateEngine

Inheritance: IEmailTemplateEngine
ファイルを表示 Open project: NickJosevski/mailzor Class Usage Examples

Public Methods

Method Description
EmailTemplateEngine ( IEmailTemplateContentReader contentReader ) : System
EmailTemplateEngine ( IEmailTemplateContentReader contentReader, string htmlTemplateSuffix, string textTemplateSuffix, string sharedTemplateSuffix ) : System
Execute ( string templateName, object model = null ) : Email

Protected Methods

Method Description
GenerateAssembly ( ) : Assembly
WrapModel ( object model ) : dynamic

Private Methods

Method Description
BuildReferenceList ( ) : IEnumerable
CreateRazorEngine ( ) : System.Web.Razor.RazorTemplateEngine
CreateTemplateInstances ( string templateName ) : IEmailTemplate>>.IEnumerable
GenerateTemplateTypes ( string templateName ) : Type>>.IEnumerable
GetTemplateTypes ( string templateName ) : Type>>.IEnumerable

Method Details

EmailTemplateEngine() public method

public EmailTemplateEngine ( IEmailTemplateContentReader contentReader ) : System
contentReader IEmailTemplateContentReader
return System

EmailTemplateEngine() public method

public EmailTemplateEngine ( IEmailTemplateContentReader contentReader, string htmlTemplateSuffix, string textTemplateSuffix, string sharedTemplateSuffix ) : System
contentReader IEmailTemplateContentReader
htmlTemplateSuffix string
textTemplateSuffix string
sharedTemplateSuffix string
return System

Execute() public method

public Execute ( string templateName, object model = null ) : Email
templateName string
model object
return Email

GenerateAssembly() protected method

protected GenerateAssembly ( ) : Assembly
return System.Reflection.Assembly

WrapModel() protected method

protected WrapModel ( object model ) : dynamic
model object
return dynamic