C# Class MWS.Core.EmailQueueManager

Inheritance: IEmailQueueManager
Afficher le fichier Open project: SavageLearning/Machete Class Usage Examples

Méthodes publiques

Méthode Description
EmailQueueManager ( IEmailService eServ, IUnitOfWork uow ) : System
ProcessQueue ( EmailServerConfig cfg ) : void

Get emails from EmailService and calle SendMail to send emails

SendEmail ( Email e, EmailServerConfig cfg ) : bool

create SmtpClient, create mail message, and send message. Catches exceptions and puts them in QueueManager.ExceptionStack.

getDiagnostics ( ) : string
getExceptions ( ) : string

String of exception messages, 1 per line

getSent ( ) : string

Method Details

EmailQueueManager() public méthode

public EmailQueueManager ( IEmailService eServ, IUnitOfWork uow ) : System
eServ IEmailService
uow IUnitOfWork
Résultat System

ProcessQueue() public méthode

Get emails from EmailService and calle SendMail to send emails
public ProcessQueue ( EmailServerConfig cfg ) : void
cfg EmailServerConfig
Résultat void

SendEmail() public méthode

create SmtpClient, create mail message, and send message. Catches exceptions and puts them in QueueManager.ExceptionStack.
public SendEmail ( Email e, EmailServerConfig cfg ) : bool
e Machete.Domain.Email
cfg EmailServerConfig
Résultat bool

getDiagnostics() public méthode

public getDiagnostics ( ) : string
Résultat string

getExceptions() public méthode

String of exception messages, 1 per line
public getExceptions ( ) : string
Résultat string

getSent() public méthode

public getSent ( ) : string
Résultat string