cosullivan / SmtpServer

A SMTP Server component written in C#
MIT License
676 stars 160 forks source link

Update SampleMailboxFilter - cannot put required params after optional ones #130

Closed cdwiegand closed 4 years ago

cdwiegand commented 4 years ago
public class SampleMailboxFilter : IMailboxFilter, IMailboxFilterFactory
{
    public Task<MailboxFilterResult> CanAcceptFromAsync(ISessionContext context, IMailbox @from, int size = 0, CancellationToken token)
    { 

causes an Error CS1737: Optional parameters must appear after all required parameters - I believe size should not have =0 after it.

cosullivan commented 4 years ago

Hi @cdwiegand,

I assume this was from the Readme file that you found this.

I have updated that now.

Thanks, Cain.