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;
        }
        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;
        }
 public GetDefaultSmtpCapabilities(IConfiguredSmtpRestrictions configuration)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     _configuration = configuration;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
        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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 8
0
 public SmtpDataResponder(IConfiguredSmtpRestrictions configuration)
 {
     Configuration = configuration;
 }
 public SmtpResetResponder(IConfiguredSmtpRestrictions configuration)
 {
     Configuration = configuration;
 }
 public SmtpRawLineResponder(IConfiguredSmtpRestrictions configuration)
 {
     Configuration = configuration;
 }
 public GetDefaultSmtpCapabilities(IConfiguredSmtpRestrictions configuration)
 {
     if (configuration == null) throw new ArgumentNullException(nameof(configuration));
     _configuration = configuration;
 }
 public SmtpVerifyResponder(IConfiguredSmtpRestrictions configuration)
 {
     Configuration = configuration;
 }
Ejemplo n.º 13
0
 public SmtpRecipientToResponder(IConfiguredSmtpRestrictions configuration, IEmailValidator emailValidator)
 {
     Configuration   = configuration;
     _emailValidator = emailValidator;
 }
 public SmtpRecipientToResponder(IConfiguredSmtpRestrictions configuration, IEmailValidator emailValidator)
 {
     Configuration = configuration;
     _emailValidator = emailValidator;
 }