C# Class SmtpServer.Protocol.StartTlsCommand

Inheritance: SmtpCommand
显示文件 Open project: cosullivan/SmtpServer Class Usage Examples

Public Methods

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

Execute the command.

StartTlsCommand ( X509Certificate certificate ) : System.Net.Security

Constructor.

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

StartTlsCommand() public method

Constructor.
public StartTlsCommand ( X509Certificate certificate ) : System.Net.Security
certificate System.Security.Cryptography.X509Certificates.X509Certificate The server side certificate to authenticate with.
return System.Net.Security