C# Class SmtpServer.SmtpSession

Afficher le fichier Open project: cosullivan/SmtpServer Class Usage Examples

Private Properties

Свойство Type Description
OuputErrorMessageAsync Task
OutputGreetingAsync Task
RunAsync Task
SmtpSession System.Net.Sockets

Méthodes publiques

Méthode Description
Run ( CancellationToken cancellationToken ) : void

Executes the session.

Private Methods

Méthode 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 méthode

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