C# Class SampleApp.ConsoleMailboxFilter

Inheritance: SmtpServer.Storage.MailboxFilter
ファイルを表示 Open project: cosullivan/SmtpServer

Public Methods

Method Description
CanAcceptFromAsync ( ISessionContext context, IMailbox @from, int size ) : Task

Returns a value indicating whether the given mailbox can be accepted as a sender.

CanDeliverToAsync ( ISessionContext context, IMailbox to, IMailbox @from ) : Task

Returns a value indicating whether the given mailbox can be accepted as a recipient to the given sender.

Method Details

CanAcceptFromAsync() public method

Returns a value indicating whether the given mailbox can be accepted as a sender.
public CanAcceptFromAsync ( ISessionContext context, IMailbox @from, int size ) : Task
context ISessionContext The session context.
@from IMailbox
size int The estimated message size to accept.
return Task

CanDeliverToAsync() public method

Returns a value indicating whether the given mailbox can be accepted as a recipient to the given sender.
public CanDeliverToAsync ( ISessionContext context, IMailbox to, IMailbox @from ) : Task
context ISessionContext The session context.
to IMailbox The mailbox to test.
@from IMailbox
return Task