Пример #1
0
 public SendGridEmailService(IOptions <EmailServiceOptions> emailServiceOptions, ILogger <EmailService> logger)
 {
     _emailServiceOptions = emailServiceOptions.Value;
     _logger = logger;
 }
 public EmailService(IOptions <EmailServiceOptions> emailServiceOptions)
 {
     _emailServiceOptions = emailServiceOptions.Value;
 }
Пример #3
0
 public SendGridEmailService(EmailServiceOptions emailServiceOptions, ILogger <EmailService> logger)
 {
     _emailServiceOptions = emailServiceOptions;
     _logger = logger;
 }
Пример #4
0
 public EmailService(IOptions <EmailServiceOptions> options)
 {
     this.options = options.Value;
 }