C# Class SmtpServer.Protocol.MailCommand

Inheritance: SmtpCommand
Exibir arquivo Open project: cosullivan/SmtpServer Class Usage Examples

Public Methods

Method Description
ExecuteAsync ( ISmtpSessionContext context, CancellationToken cancellationToken ) : Task

Execute the command.

MailCommand ( IMailbox address, string>.IDictionary parameters, IMailboxFilterFactory mailboxFilterFactory, int maxMessageSize ) : System

Constructor.

Private Methods

Method Description
GetMessageSize ( ) : int

Gets the estimated message size supplied from the ESMTP command extension.

Method Details

ExecuteAsync() public method

Execute the command.
public ExecuteAsync ( ISmtpSessionContext context, CancellationToken cancellationToken ) : Task
context ISmtpSessionContext The execution context to operate on.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

MailCommand() public method

Constructor.
public MailCommand ( IMailbox address, string>.IDictionary parameters, IMailboxFilterFactory mailboxFilterFactory, int maxMessageSize ) : System
address IMailbox The address.
parameters string>.IDictionary The list of extended (ESMTP) parameters.
mailboxFilterFactory IMailboxFilterFactory The mailbox filter factory to create the filters from.
maxMessageSize int The maximum message size (0 for no limit).
return System