Пример #1
0
 public EmailSender(IOptions <EmailOptions> options)
 {
     emailOptions = options.Value;
 }
Пример #2
0
 public IEmailSend(IOptions <EmailOptions> emailoptions)
 {
     Options = emailoptions.Value;
 }