예제 #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;
 }