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

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

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

Метод Описание
SmtpCommandFactory ( ISmtpServerOptions options, SmtpParser parser ) : System

Constructor.

TryMakeAuth ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an AUTH command from the given enumerator.

TryMakeData ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a DATA command from the given enumerator.

TryMakeDbug ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an DBUG command from the given enumerator.

TryMakeEhlo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an EHLO command from the given enumerator.

TryMakeHelo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a HELO command from the given enumerator.

TryMakeMail ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a MAIL command from the given enumerator.

TryMakeNoop ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an NOOP command from the given enumerator.

TryMakeQuit ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a QUIT command.

TryMakeRcpt ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a RCTP command from the given enumerator.

TryMakeRset ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an RSET command from the given enumerator.

TryMakeStartTls ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an STARTTLS command from the given enumerator.

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

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

Constructor.
public SmtpCommandFactory ( ISmtpServerOptions options, SmtpParser parser ) : System
options ISmtpServerOptions The SMTP server options.
parser SmtpParser The ABNF SMTP argument parser.
Результат System

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

Make an AUTH command from the given enumerator.
public TryMakeAuth ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The AUTH command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make a DATA command from the given enumerator.
public TryMakeData ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The DATA command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make an DBUG command from the given enumerator.
public TryMakeDbug ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The DBUG command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make an EHLO command from the given enumerator.
public TryMakeEhlo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The EHLO command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make a HELO command from the given enumerator.
public TryMakeHelo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The HELO command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make a MAIL command from the given enumerator.
public TryMakeMail ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The MAIL command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make an NOOP command from the given enumerator.
public TryMakeNoop ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The NOOP command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make a QUIT command.
public TryMakeQuit ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The QUIT command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make a RCTP command from the given enumerator.
public TryMakeRcpt ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The RCTP command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make an RSET command from the given enumerator.
public TryMakeRset ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The RSET command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool

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

Make an STARTTLS command from the given enumerator.
public TryMakeStartTls ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The STARTTLS command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Результат bool