コード例 #1
0
        public SmtpMailFromResponder(IConfiguredSmtpRestrictions configuration, IEmailValidator emailValidator)
        {
            if (configuration == null) throw new ArgumentNullException(nameof(configuration));
            if (emailValidator == null) throw new ArgumentNullException(nameof(emailValidator));

            Configuration = configuration;
            _emailValidator = emailValidator;
        }
コード例 #2
0
        public SmtpIdentificationResponder(IConfiguredSmtpRestrictions configuration, IGetSmtpCapabilities getSmtpCapabilities)
        {
            if (configuration == null) throw new ArgumentNullException(nameof(configuration));
            if (getSmtpCapabilities == null) throw new ArgumentNullException(nameof(getSmtpCapabilities));

            Configuration = configuration;
            _getSmtpCapabilities = getSmtpCapabilities;
        }
コード例 #3
0
 public GetDefaultSmtpCapabilities(IConfiguredSmtpRestrictions configuration)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     _configuration = configuration;
 }
コード例 #4
0
        public SmtpIdentificationResponder(IConfiguredSmtpRestrictions configuration, IGetSmtpCapabilities getSmtpCapabilities)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }
            if (getSmtpCapabilities == null)
            {
                throw new ArgumentNullException("getSmtpCapabilities");
            }

            Configuration        = configuration;
            _getSmtpCapabilities = getSmtpCapabilities;
        }
コード例 #5
0
        public SmtpMailFromResponder(IConfiguredSmtpRestrictions configuration, IEmailValidator emailValidator)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }
            if (emailValidator == null)
            {
                throw new ArgumentNullException("emailValidator");
            }

            Configuration   = configuration;
            _emailValidator = emailValidator;
        }
コード例 #6
0
        public SmtpResponderFactory(IConfiguredSmtpRestrictions configuration,
            IEmailValidator emailValidator = null,
            IGetSmtpCapabilities getSmtpCapabilities = null)
        {
            if (configuration == null) throw new ArgumentNullException("configuration");
            
            emailValidator = emailValidator ?? new XamarinEmailValidator();
            getSmtpCapabilities = getSmtpCapabilities ?? new GetDefaultSmtpCapabilities(configuration);

            DataResponder = new SmtpDataResponder(configuration);
            IdentificationResponder = new SmtpIdentificationResponder(configuration, getSmtpCapabilities);
            MailFromResponder = new SmtpMailFromResponder(configuration, emailValidator);
            RecipientToResponder = new SmtpRecipientToResponder(configuration, emailValidator);
            RawLineResponder = new SmtpRawLineResponder(configuration);
            ResetResponder = new SmtpResetResponder(configuration);
            VerifyResponder = new SmtpVerifyResponder(configuration);
        }
コード例 #7
0
        public SmtpResponderFactory(IConfiguredSmtpRestrictions configuration,
                                    IEmailValidator emailValidator           = null,
                                    IGetSmtpCapabilities getSmtpCapabilities = null)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            emailValidator      = emailValidator ?? new XamarinEmailValidator();
            getSmtpCapabilities = getSmtpCapabilities ?? new GetDefaultSmtpCapabilities(configuration);

            DataResponder           = new SmtpDataResponder(configuration);
            IdentificationResponder = new SmtpIdentificationResponder(configuration, getSmtpCapabilities);
            MailFromResponder       = new SmtpMailFromResponder(configuration, emailValidator);
            RecipientToResponder    = new SmtpRecipientToResponder(configuration, emailValidator);
            RawLineResponder        = new SmtpRawLineResponder(configuration);
            ResetResponder          = new SmtpResetResponder(configuration);
            VerifyResponder         = new SmtpVerifyResponder(configuration);
        }
コード例 #8
0
 public SmtpDataResponder(IConfiguredSmtpRestrictions configuration)
 {
     Configuration = configuration;
 }
コード例 #9
0
 public SmtpResetResponder(IConfiguredSmtpRestrictions configuration)
 {
     Configuration = configuration;
 }
コード例 #10
0
 public SmtpRawLineResponder(IConfiguredSmtpRestrictions configuration)
 {
     Configuration = configuration;
 }
コード例 #11
0
 public GetDefaultSmtpCapabilities(IConfiguredSmtpRestrictions configuration)
 {
     if (configuration == null) throw new ArgumentNullException(nameof(configuration));
     _configuration = configuration;
 }
コード例 #12
0
 public SmtpVerifyResponder(IConfiguredSmtpRestrictions configuration)
 {
     Configuration = configuration;
 }
コード例 #13
0
 public SmtpRecipientToResponder(IConfiguredSmtpRestrictions configuration, IEmailValidator emailValidator)
 {
     Configuration   = configuration;
     _emailValidator = emailValidator;
 }
コード例 #14
0
 public SmtpRecipientToResponder(IConfiguredSmtpRestrictions configuration, IEmailValidator emailValidator)
 {
     Configuration = configuration;
     _emailValidator = emailValidator;
 }