Configure() public static méthode

Configures this instance.
public static Configure ( ) : Configuration
Résultat Configuration
Exemple #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))
 {
 }
Exemple #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)));
 }
Exemple #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)));
 }
Exemple #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)));
 }
Exemple #5
0
 /// <summary>
 /// Starts this instance.
 /// </summary>
 /// <returns></returns>
 public static SimpleSmtpServer Start()
 {
     return(SimpleSmtpServer.Start(Configuration.Configure().WithRandomPort()));
 }
 /// <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)));
 }