C# 클래스 BinaryStudio.ClientManager.DomainModel.Input.MailMessagePersister

saves received messages into repository
파일 보기 프로젝트 열기: titarenko/ClientManager 1 사용 예제들

공개 메소드들

메소드 설명
Convert ( MailMessage mailMessage ) : Entities.MailMessage

Converts Input.MailMessage to Entities.MailMessage. If sender or receivers isn't exist then they will be added to repository If email forwarded then sender will be taken from body MailMessageParserThunderbird

MailMessagePersister ( IRepository repository, IEmailClient emailClient, IInquiryFactory inquiryFactory, IMailMessageParserFactory mailMessageParserFactory ) : System
ProcessMessage ( object sender, EventArgs args ) : void

비공개 메소드들

메소드 설명
AddNewPersonToRepository ( System.Net.Mail.MailAddress mailOfPerson, System.DateTime dateOfIncomingMail ) : Person

Create new person in repository

createInquiry ( Entities convertedMessage ) : void
isForwardedMailMessage ( MailMessage mailMessage ) : bool

Returns true if mail message have fwd: or fw: in subject

메소드 상세

Convert() 공개 메소드

Converts Input.MailMessage to Entities.MailMessage. If sender or receivers isn't exist then they will be added to repository If email forwarded then sender will be taken from body MailMessageParserThunderbird
public Convert ( MailMessage mailMessage ) : Entities.MailMessage
mailMessage MailMessage Input.MailMessage type of message
리턴 Entities.MailMessage

MailMessagePersister() 공개 메소드

public MailMessagePersister ( IRepository repository, IEmailClient emailClient, IInquiryFactory inquiryFactory, IMailMessageParserFactory mailMessageParserFactory ) : System
repository IRepository
emailClient IEmailClient
inquiryFactory IInquiryFactory
mailMessageParserFactory IMailMessageParserFactory
리턴 System

ProcessMessage() 공개 메소드

public ProcessMessage ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
리턴 void