C# 클래스 SmtpServer.OptionsBuilder

파일 보기 프로젝트 열기: cosullivan/SmtpServer 1 사용 예제들

공개 메소드들

메소드 설명
AllowUnsecureAuthentication ( bool value = true ) : OptionsBuilder

Sets a value indicating whether authentication should be allowed on an unsecure session.

Build ( ) : ISmtpServerOptions

Builds the options that have been set and returns the built instance.

Certificate ( X509Certificate serverCertificate ) : OptionsBuilder

Sets the X509 certificate to use when starting a TLS session.

Endpoint ( IPEndPoint endpoint ) : OptionsBuilder

Adds an endpoint to listen on.

MailboxFilter ( IMailboxFilterFactory mailboxFilterFactory ) : OptionsBuilder

Adds a mailbox filter factory.

MaxMessageSize ( int maxMessageSize ) : OptionsBuilder

Sets the maximum message size.

MessageStore ( IMessageStoreFactory messageStoreFactory ) : OptionsBuilder

Adds a message store factory.

Port ( ) : OptionsBuilder

Adds an endpoint with the given port.

ServerName ( string serverName ) : OptionsBuilder

Sets the server name.

UserAuthenticator ( IUserAuthenticator userAuthenticator ) : OptionsBuilder

Sets the User Authenticator.

메소드 상세

AllowUnsecureAuthentication() 공개 메소드

Sets a value indicating whether authentication should be allowed on an unsecure session.
public AllowUnsecureAuthentication ( bool value = true ) : OptionsBuilder
value bool true if the AUTH command is available on an unsecure session, false if not.
리턴 OptionsBuilder

Build() 공개 메소드

Builds the options that have been set and returns the built instance.
public Build ( ) : ISmtpServerOptions
리턴 ISmtpServerOptions

Certificate() 공개 메소드

Sets the X509 certificate to use when starting a TLS session.
public Certificate ( X509Certificate serverCertificate ) : OptionsBuilder
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate The server's certificate to use when starting a TLS session.
리턴 OptionsBuilder

Endpoint() 공개 메소드

Adds an endpoint to listen on.
public Endpoint ( IPEndPoint endpoint ) : OptionsBuilder
endpoint System.Net.IPEndPoint The endpoint to listen on.
리턴 OptionsBuilder

MailboxFilter() 공개 메소드

Adds a mailbox filter factory.
public MailboxFilter ( IMailboxFilterFactory mailboxFilterFactory ) : OptionsBuilder
mailboxFilterFactory IMailboxFilterFactory The mailbox filter factory to add.
리턴 OptionsBuilder

MaxMessageSize() 공개 메소드

Sets the maximum message size.
public MaxMessageSize ( int maxMessageSize ) : OptionsBuilder
maxMessageSize int The maximum message size to allow.
리턴 OptionsBuilder

MessageStore() 공개 메소드

Adds a message store factory.
public MessageStore ( IMessageStoreFactory messageStoreFactory ) : OptionsBuilder
messageStoreFactory IMessageStoreFactory The message store factory to use.
리턴 OptionsBuilder

Port() 공개 메소드

Adds an endpoint with the given port.
public Port ( ) : OptionsBuilder
리턴 OptionsBuilder

ServerName() 공개 메소드

Sets the server name.
public ServerName ( string serverName ) : OptionsBuilder
serverName string The name of the server.
리턴 OptionsBuilder

UserAuthenticator() 공개 메소드

Sets the User Authenticator.
public UserAuthenticator ( IUserAuthenticator userAuthenticator ) : OptionsBuilder
userAuthenticator IUserAuthenticator The user authenticator.
리턴 OptionsBuilder