C# Class netDumbster.smtp.SimpleSmtpServer

Simple Smtp Server
Afficher le fichier Open project: cmendible/netDumbster Class Usage Examples

Private Properties

Свойство Type Description
SimpleSmtpServer System
SimpleSmtpServer System
SimpleSmtpServer System
Start SimpleSmtpServer
StartListening void
_SocketHandler void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

ClearReceivedEmail() public méthode

Clears the received email.
public ClearReceivedEmail ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Start() public static méthode

Starts this instance.
public static Start ( ) : SimpleSmtpServer
Résultat SimpleSmtpServer

Start() public static méthode

Starts the specified use message store.
public static Start ( bool useMessageStore ) : SimpleSmtpServer
useMessageStore bool if set to true [use message store].
Résultat SimpleSmtpServer

Start() public static méthode

Starts server listening to the specified port.
public static Start ( int port ) : SimpleSmtpServer
port int The port.
Résultat SimpleSmtpServer

Start() public static méthode

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].
Résultat SimpleSmtpServer

Start() public static méthode

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
Résultat SimpleSmtpServer

Start() public static méthode

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
Résultat SimpleSmtpServer

Stop() public méthode

Stop the server. This notifies the listener to stop accepting new connections and that the loop should exit.
public Stop ( ) : void
Résultat void