C# Класс netDumbster.smtp.SimpleSmtpServer

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

Private Properties

Свойство Тип Описание
SimpleSmtpServer System
SimpleSmtpServer System
SimpleSmtpServer System
Start SimpleSmtpServer
StartListening void
_SocketHandler void

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

Метод Описание
ClearReceivedEmail ( ) : void

Clears the received email.

Dispose ( ) : void
Start ( ) : SimpleSmtpServer

Starts this instance.

Start ( bool useMessageStore ) : SimpleSmtpServer

Starts the specified use message store.

Start ( int port ) : SimpleSmtpServer

Starts server listening to the specified port.

Start ( int port, bool useMessageStore ) : SimpleSmtpServer

Starts the specified port.

Start ( int port, bool useMessageStore, int processingDelayInMilliseconds ) : SimpleSmtpServer

Starts the specified port.

Start ( int port, int processingDelayInMilliseconds ) : SimpleSmtpServer

Starts server listening to the specified port with a simulated delay when processing a new SMTP message.

Stop ( ) : void

Stop the server. This notifies the listener to stop accepting new connections and that the loop should exit.

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

Метод Описание
SimpleSmtpServer ( Configuration configuration ) : System
SimpleSmtpServer ( int port ) : System

Initializes a new instance of the SimpleSmtpServer class.

SimpleSmtpServer ( int port, bool useMessageStore ) : System

Prevents a default instance of the SimpleSmtpServer class from being created.

Start ( Configuration configuration ) : SimpleSmtpServer
StartListening ( ) : void

Starts the Server

_SocketHandler ( IAsyncResult result ) : void

Async Socket handler.

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

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

Clears the received email.
public ClearReceivedEmail ( ) : void
Результат void

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

public Dispose ( ) : void
Результат void

Start() публичный статический Метод

Starts this instance.
public static Start ( ) : SimpleSmtpServer
Результат SimpleSmtpServer

Start() публичный статический Метод

Starts the specified use message store.
public static Start ( bool useMessageStore ) : SimpleSmtpServer
useMessageStore bool if set to true [use message store].
Результат SimpleSmtpServer

Start() публичный статический Метод

Starts server listening to the specified port.
public static Start ( int port ) : SimpleSmtpServer
port int The port.
Результат SimpleSmtpServer

Start() публичный статический Метод

Starts the specified port.
public static Start ( int port, bool useMessageStore ) : SimpleSmtpServer
port int The port.
useMessageStore bool if set to true [use message store].
Результат SimpleSmtpServer

Start() публичный статический Метод

Starts the specified port.
public static Start ( int port, bool useMessageStore, int processingDelayInMilliseconds ) : SimpleSmtpServer
port int The port.
useMessageStore bool if set to true [use message store].
processingDelayInMilliseconds int The number of milliseconds to wait before processing a new SMTP message
Результат SimpleSmtpServer

Start() публичный статический Метод

Starts server listening to the specified port with a simulated delay when processing a new SMTP message.
public static Start ( int port, int processingDelayInMilliseconds ) : SimpleSmtpServer
port int The port.
processingDelayInMilliseconds int The number of milliseconds to wait before processing a new SMTP message
Результат SimpleSmtpServer

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

Stop the server. This notifies the listener to stop accepting new connections and that the loop should exit.
public Stop ( ) : void
Результат void