示例#1
0
 public MailService(MailSettings mailSettings, MailSecrets mailSecrets)
 {
     _mailSettings = mailSettings;
     _mailSecrets  = mailSecrets;
 }
示例#2
0
 public MailService(IOptions <MailSettings> mailSettings, IOptions <MailSecrets> mailSecrets)
 {
     _mailSettings = mailSettings.Value;
     _mailSecrets  = mailSecrets.Value;
 }