示例#1
0
 public NotificationService(IMailService mailService, IOptions <MailConfig> config, IViewRenderService viewRenderService, IHttpContextAccessor httpContextAccessor, IBackgroundJobClient backgroundJobs)
 {
     this.mailService         = mailService;
     this.config              = config.Value;
     this.viewRenderService   = viewRenderService;
     this.httpContextAccessor = httpContextAccessor;
     this.backgroundJobs      = backgroundJobs;
 }
示例#2
0
 public MailService(IOptions <MailConfig> cfg, ILogger <LdapService> logger)
 {
     config      = cfg.Value;
     this.logger = logger;
 }