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; }
public MailService(IOptions <MailConfig> cfg, ILogger <LdapService> logger) { config = cfg.Value; this.logger = logger; }