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
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
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