C# Class SmtpServer.Storage.CompositeMailboxFilter

Inheritance: IMailboxFilter
Mostrar archivo 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.

CompositeMailboxFilter ( ) : System.Linq

Constructor.

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

CompositeMailboxFilter() public method

Constructor.
public CompositeMailboxFilter ( ) : System.Linq
return System.Linq