Configure() public static method

Configures this instance.
public static Configure ( ) : Configuration
return Configuration
Exemplo n.º 1
0
 /// <summary>
 /// Prevents a default instance of the <see cref="SimpleSmtpServer"/> class from being created.
 /// </summary>
 /// <param name="port">The port.</param>
 /// <param name="useMessageStore">if set to <c>true</c> [use message store].</param>
 private SimpleSmtpServer(int port, bool useMessageStore)
     : this(Configuration.Configure().WithPort(port).EnableMessageStore(useMessageStore))
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Starts the specified port.
 /// </summary>
 /// <param name="port">The port.</param>
 /// <param name="useMessageStore">if set to <c>true</c> [use message store].</param>
 /// <returns></returns>
 public static SimpleSmtpServer Start(int port, bool useMessageStore)
 {
     return(SimpleSmtpServer.Start(Configuration.Configure().WithPort(port).EnableMessageStore(useMessageStore)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Starts server listening to the specified port.
 /// </summary>
 /// <param name="port">The port.</param>
 /// <returns></returns>
 public static SimpleSmtpServer Start(int port)
 {
     return(SimpleSmtpServer.Start(Configuration.Configure().WithPort(port)));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Starts the specified use message store.
 /// </summary>
 /// <param name="useMessageStore">if set to <c>true</c> [use message store].</param>
 /// <returns></returns>
 public static SimpleSmtpServer Start(bool useMessageStore)
 {
     return(SimpleSmtpServer.Start(Configuration.Configure().WithRandomPort().EnableMessageStore(useMessageStore)));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Starts this instance.
 /// </summary>
 /// <returns></returns>
 public static SimpleSmtpServer Start()
 {
     return(SimpleSmtpServer.Start(Configuration.Configure().WithRandomPort()));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Starts the specified port.
 /// </summary>
 /// <param name="port">The port.</param>
 /// <param name="useMessageStore">if set to <c>true</c> [use message store].</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, bool useMessageStore, int processingDelayInMilliseconds)
 {
     return(SimpleSmtpServer.Start(Configuration.Configure().WithPort(port).EnableMessageStore(useMessageStore).WithProcessingDelay(processingDelayInMilliseconds)));
 }