netDumbster.smtp.SimpleSmtpServer.Start C# (CSharp) Метод

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
        public static SimpleSmtpServer Start(int port, int processingDelayInMilliseconds)
        {
            return SimpleSmtpServer.Start(Configuration.Configure()
                                                       .WithPort(port)
                                                       .WithProcessingDelay(processingDelayInMilliseconds)
                                          );
        }

Same methods

SimpleSmtpServer::Start ( ) : SimpleSmtpServer
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

Usage Example

Пример #1
0
 /// <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