Example #1
0
 public EmailService(IOptions <EmailServiceSettings> emailServiceOptions)
 {
     _emailServiceOptions = emailServiceOptions.Value;
 }
Example #2
0
 public SendGridEmailService(IOptions <EmailServiceSettings> emailServiceOptions, ILogger <EmailService> logger)
 {
     _emailServiceOptions = emailServiceOptions.Value;
     _logger = logger;
 }