C# Класс MWS.Core.EmailQueueManager

Наследование: IEmailQueueManager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

EmailQueueManager() публичный Метод

public EmailQueueManager ( IEmailService eServ, IUnitOfWork uow ) : System
eServ IEmailService
uow IUnitOfWork
Результат System

ProcessQueue() публичный Метод

Get emails from EmailService and calle SendMail to send emails
public ProcessQueue ( EmailServerConfig cfg ) : void
cfg EmailServerConfig
Результат void

SendEmail() публичный Метод

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
Результат bool

getDiagnostics() публичный Метод

public getDiagnostics ( ) : string
Результат string

getExceptions() публичный Метод

String of exception messages, 1 per line
public getExceptions ( ) : string
Результат string

getSent() публичный Метод

public getSent ( ) : string
Результат string