Пример #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;
 }