C# Class SmtpServer.Protocol.EhloCommand

Inheritance: SmtpCommand
Show file Open project: cosullivan/SmtpServer Class Usage Examples

Public Methods

Method Description
EhloCommand ( string domainOrAddress, ISmtpServerOptions options ) : System.Collections.Generic

Constructor.

ExecuteAsync ( ISmtpSessionContext context, CancellationToken cancellationToken ) : Task

Execute the command.

Private Methods

Method Description
GetExtensions ( ISmtpSessionContext session ) : IEnumerable

Gets the list of extensions.

IsPlainLoginAllowed ( ISmtpSessionContext session ) : bool

Returns a value indicating whether or not plain login is allowed.

Method Details

EhloCommand() public method

Constructor.
public EhloCommand ( string domainOrAddress, ISmtpServerOptions options ) : System.Collections.Generic
domainOrAddress string The domain name or address literal.
options ISmtpServerOptions The list of server options.
return System.Collections.Generic

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