C# Class InboxWatcher.ImapClient.EmailSender

Inheritance: IEmailSender
显示文件 Open project: ptfuller/InboxWatcher

Public Methods

Method Description
EmailSender ( IImapFactory factory ) : System
IsAuthenticated ( ) : bool
IsConnected ( ) : bool
SendMail ( MimeMessage message, string emailDestination, bool moveToDest ) : Task
Setup ( ) : Task

Private Methods

Method Description
KeepAlive ( ) : Task
SmtpClientOnDisconnected ( object sender, EventArgs eventArgs ) : void
_timer_Elapsed ( object sender, System e ) : void

Method Details

EmailSender() public method

public EmailSender ( IImapFactory factory ) : System
factory IImapFactory
return System

IsAuthenticated() public method

public IsAuthenticated ( ) : bool
return bool

IsConnected() public method

public IsConnected ( ) : bool
return bool

SendMail() public method

public SendMail ( MimeMessage message, string emailDestination, bool moveToDest ) : Task
message MimeKit.MimeMessage
emailDestination string
moveToDest bool
return Task

Setup() public method

public Setup ( ) : Task
return Task