C# Класс 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.
Наследование: IMRServiceEnabled, IEmailTemplateService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

EmailTemplateService() публичный Метод

Initializes a new instance of the EmailTemplateService class.
public EmailTemplateService ( ) : System
Результат System

RenderMailMessage() публичный Метод

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
Результат Castle.Components.Common.EmailSender.Message

RenderMailMessage() публичный Метод

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
Результат Castle.Components.Common.EmailSender.Message

Service() публичный Метод

Invoked by the framework in order to give a chance to obtain other services
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The service proviver
Результат void