C# Class SmtpServer.SmtpSession

Datei anzeigen Open project: cosullivan/SmtpServer Class Usage Examples

Private Properties

Property Type Description
OuputErrorMessageAsync Task
OutputGreetingAsync Task
RunAsync Task
SmtpSession System.Net.Sockets

Public Methods

Method Description
Run ( CancellationToken cancellationToken ) : void

Executes the session.

Private Methods

Method Description
OuputErrorMessageAsync ( SmtpResponse errorResponse, CancellationToken cancellationToken ) : Task

Output the error message.

OutputGreetingAsync ( CancellationToken cancellationToken ) : Task

Output the greeting.

RunAsync ( CancellationToken cancellationToken ) : Task

Handles the SMTP session.

SmtpSession ( ISmtpServerOptions options, TcpClient tcpClient, SmtpStateMachine stateMachine ) : System.Net.Sockets

Constructor.

Method Details

Run() public method

Executes the session.
public Run ( CancellationToken cancellationToken ) : void
cancellationToken System.Threading.CancellationToken The cancellation token.
return void