C# Класс SmtpServer.Protocol.SmtpStateMachine

Наследование: ISmtpStateMachine
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ISmtpStateMachine ( SmtpState state, string command ) : void

Remove the specified command from the state.

Описание методов

SmtpStateMachine() публичный Метод

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.
Результат System

TryAccept() публичный Метод

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.
Результат bool