コード例 #1
0
        public static void UseSmtp(this JobHostConfiguration config, SmtpConfiguration smtpConfiguration = null)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            if (smtpConfiguration == null)
            {
                smtpConfiguration = new SmtpConfiguration();
            }

            config.RegisterExtensionConfigProvider(new SmtpExtensionConfig(smtpConfiguration));
        }
コード例 #2
0
 public SmtpExtensionConfig(SmtpConfiguration smtpConfiguration)
 {
     _smtpConfiguration = smtpConfiguration;
 }