public static Start ( int port, bool useMessageStore, int processingDelayInMilliseconds ) : |
||
port | int | The port. |
useMessageStore | bool | if set to |
processingDelayInMilliseconds | int | The number of milliseconds to wait before processing a new SMTP message |
return |
public static SimpleSmtpServer Start(int port, bool useMessageStore, int processingDelayInMilliseconds)
{
return SimpleSmtpServer.Start(Configuration.Configure().WithPort(port).EnableMessageStore(useMessageStore).WithProcessingDelay(processingDelayInMilliseconds));
}
SimpleSmtpServer::Start ( ) : |
|
SimpleSmtpServer::Start ( |
|
SimpleSmtpServer::Start ( bool useMessageStore ) : |
|
SimpleSmtpServer::Start ( int port ) : |
|
SimpleSmtpServer::Start ( int port, bool useMessageStore ) : |
|
SimpleSmtpServer::Start ( int port, int processingDelayInMilliseconds ) : |
/// <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) )); }