Пример #1
0
 /// <summary>
 /// Instantiate the <see cref="SmtpProvider"/>
 /// </summary>
 /// <param name="smtpOptions">The SMTP options</param>
 /// <param name="loggerFactory">The logger factory</param>
 public SmtpProvider(IOptions <SmtpProviderOptions> smtpOptions, ILoggerFactory loggerFactory)
     : base(smtpOptions.Value, loggerFactory)
 {
     _smtpClient  = SmtpClient.Create(smtpOptions.Value);
     _smtpOptions = smtpOptions.Value;
 }
Пример #2
0
 /// <summary>
 /// Instantiate the <see cref="SmtpProvider"/>
 /// </summary>
 /// <param name="smtpOptions">The SMTP options</param>
 /// <param name="loggerFactory">The logger factory</param>
 public SmtpProvider(SmtpProviderOptions smtpOptions, ILoggerFactory loggerFactory)
     : base(smtpOptions, loggerFactory)
 {
     _smtpClient  = SmtpClient.Create(smtpOptions);
     _smtpOptions = smtpOptions;
 }