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