C# Class Rnwood.SmtpServer.Server

Inheritance: IServer
Afficher le fichier Open project: rnwood/smtp4dev Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
KillConnections ( ) : void
Server ( IServerBehaviour behaviour ) : Microsoft.Extensions.Logging
Start ( ) : void

Runs the server asynchronously. This method returns once the server has been started. To stop the server call the Stop() method.

Stop ( ) : void

Stops the running server. Any existing connections are terminated.

Stop ( bool killConnections ) : void

Stops the running server. This method blocks until all connections have terminated, either by normal completion or timeout, or if killConnections has been specified then once all of the threads have been killed.

WaitForNextConnection ( ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
AcceptNextClient ( ) : Task
Core ( ) : void
GetVerbMap ( ) : IVerbMap

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

KillConnections() public méthode

public KillConnections ( ) : void
Résultat void

Server() public méthode

public Server ( IServerBehaviour behaviour ) : Microsoft.Extensions.Logging
behaviour IServerBehaviour
Résultat Microsoft.Extensions.Logging

Start() public méthode

Runs the server asynchronously. This method returns once the server has been started. To stop the server call the Stop() method.
if the server is already running.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops the running server. Any existing connections are terminated.
if the server is not running.
public Stop ( ) : void
Résultat void

Stop() public méthode

Stops the running server. This method blocks until all connections have terminated, either by normal completion or timeout, or if killConnections has been specified then once all of the threads have been killed.
if the server is not running.
public Stop ( bool killConnections ) : void
killConnections bool True if existing connections should be terminated.
Résultat void

WaitForNextConnection() public méthode

public WaitForNextConnection ( ) : void
Résultat void