C# Class SmtpServer.Protocol.SmtpStateMachine

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

Méthodes publiques

Méthode Description
SmtpStateMachine ( ISmtpServerOptions options, SmtpCommandFactory commandFactory ) : System

Constructor.

TryAccept ( TokenEnumerator tokenEnumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Advances the enumerator to the next command in the stream.

Private Methods

Méthode Description
ISmtpStateMachine ( SmtpState state, string command ) : void

Remove the specified command from the state.

Method Details

SmtpStateMachine() public méthode

Constructor.
public SmtpStateMachine ( ISmtpServerOptions options, SmtpCommandFactory commandFactory ) : System
options ISmtpServerOptions The options to assist when configuring the state machine.
commandFactory SmtpCommandFactory The SMTP command factory.
Résultat System

TryAccept() public méthode

Advances the enumerator to the next command in the stream.
public TryAccept ( TokenEnumerator tokenEnumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
tokenEnumerator SmtpServer.Protocol.Text.TokenEnumerator The token enumerator to accept the command from.
command SmtpCommand The command that was found.
errorResponse SmtpResponse The error response that indicates why a command could not be accepted.
Résultat bool