C# Class Castle.MonoRail.Framework.EmailTemplateService

Default implementation of IEmailTemplateService
Will work only during a MonoRail process as it needs a IEngineContext and a Controller instance to execute.
Inheritance: IMRServiceEnabled, IEmailTemplateService
Mostra file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
EmailTemplateService ( ) : System

Initializes a new instance of the EmailTemplateService class.

RenderMailMessage ( String templateName, IDictionary parameters, bool doNotApplyLayout ) : Message

Creates an instance of Message using the specified template for the body

RenderMailMessage ( String templateName, IRailsEngineContext context, Controller controller, bool doNotApplyLayout ) : Message

Creates an instance of Message using the specified template for the body

Service ( IServiceProvider provider ) : void

Invoked by the framework in order to give a chance to obtain other services

Method Details

EmailTemplateService() public method

Initializes a new instance of the EmailTemplateService class.
public EmailTemplateService ( ) : System
return System

RenderMailMessage() public method

Creates an instance of Message using the specified template for the body
public RenderMailMessage ( String templateName, IDictionary parameters, bool doNotApplyLayout ) : Message
templateName String /// Name of the template to load. /// Will look in Views/mail for that template file. ///
parameters IDictionary /// Dictionary with parameters /// that you can use on the email template ///
doNotApplyLayout bool If true, it will skip the layout
return Castle.Components.Common.EmailSender.Message

RenderMailMessage() public method

Creates an instance of Message using the specified template for the body
public RenderMailMessage ( String templateName, IRailsEngineContext context, Controller controller, bool doNotApplyLayout ) : Message
templateName String /// Name of the template to load. /// Will look in Views/mail for that template file. ///
context IRailsEngineContext Context that represents the current request
controller Controller Controller instance
doNotApplyLayout bool If true, it will skip the layout
return Castle.Components.Common.EmailSender.Message

Service() public method

Invoked by the framework in order to give a chance to obtain other services
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The service proviver
return void