netDumbster.smtp.SimpleSmtpServer.Start C# (CSharp) Méthode

Start() public static méthode

Starts this instance.
public static Start ( ) : SimpleSmtpServer
Résultat SimpleSmtpServer
        public static SimpleSmtpServer Start()
        {
            return SimpleSmtpServer.Start(Configuration.Configure().WithRandomPort());
        }

Same methods

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

Usage Example

 /// <summary>
 /// Starts server listening to the specified port with a simulated delay when processing a new SMTP message.
 /// </summary>
 /// <param name="port">The port.</param>
 /// <param name="processingDelayInMilliseconds">The number of milliseconds to wait before processing a new SMTP message</param>
 /// <returns></returns>
 public static SimpleSmtpServer Start(int port, int processingDelayInMilliseconds)
 {
     return(SimpleSmtpServer.Start(Configuration.Configure()
                                   .WithPort(port)
                                   .WithProcessingDelay(processingDelayInMilliseconds)
                                   ));
 }
All Usage Examples Of netDumbster.smtp.SimpleSmtpServer::Start