C# 클래스 Summer.Batch.Extra.EmailSupport.EmailTasklet

Tasklet for sending emails. The host, from, subject and body fields are mandatory. The body is read from a resource. At least one recipient should be specified (in to, cc, or bcc).
상속: ITasklet, IInitializationPostOperations
파일 보기 프로젝트 열기: SummerBatch/SummerBatch 1 사용 예제들

공개 메소드들

메소드 설명
AfterPropertiesSet ( ) : void

@see IInitializationPostOperations#AfterPropertiesSet

DoExecute ( ) : bool

Inner execute.

Execute ( Summer.Batch.Core.StepContribution contribution, Summer.Batch.Core.Scope.Context.ChunkContext chunkContext ) : RepeatStatus

Send the mail message given all needed information. @see ITasklet#Execute

비공개 메소드들

메소드 설명
CreateMailMessage ( ) : MailMessage

Create mail message

GetLines ( StreamReader reader ) : string

Read mail body, line by line of the specified LineLength size.

GetText ( ) : string

Read mail body from given file

SetupSmtpClient ( ) : SmtpClient

Setup smtp client

메소드 상세

AfterPropertiesSet() 공개 메소드

@see IInitializationPostOperations#AfterPropertiesSet
public AfterPropertiesSet ( ) : void
리턴 void

DoExecute() 공개 메소드

Inner execute.
public DoExecute ( ) : bool
리턴 bool

Execute() 공개 메소드

Send the mail message given all needed information. @see ITasklet#Execute
 
public Execute ( Summer.Batch.Core.StepContribution contribution, Summer.Batch.Core.Scope.Context.ChunkContext chunkContext ) : RepeatStatus
contribution Summer.Batch.Core.StepContribution
chunkContext Summer.Batch.Core.Scope.Context.ChunkContext
리턴 RepeatStatus