public EmailSenderService(
     IOptions <EmailSenderOptions> optionsAccessor,
     IMailTemplatesCache mailTemplatesCache)
 {
     options = optionsAccessor.Value;
     this.mailTemplatesCache = mailTemplatesCache;
 }
Beispiel #2
0
 public EmailSenderService(
     IOptionsMonitor <EmailSenderOptions> emailSenderOptions,
     IMailTemplatesCache mailTemplatesCache)
 {
     this.emailSenderOptions = emailSenderOptions;
     this.mailTemplatesCache = mailTemplatesCache;
 }
Beispiel #3
0
 public CacheAdminController(
     IComponentsCache componentsCache,
     ICategoriesCache categoriesCache,
     IMenuCache menuCache,
     SpamProtectionCache spamProtectionCache,
     IMailTemplatesCache mailTemplatesCache,
     IConfigurationRoot configurationRoot,
     IDynamicConfigCache dynamicConfigCache,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     this.componentsCache     = componentsCache;
     this.categoriesCache     = categoriesCache;
     this.menuCache           = menuCache;
     this.spamProtectionCache = spamProtectionCache;
     this.mailTemplatesCache  = mailTemplatesCache;
     this.configurationRoot   = configurationRoot;
     this.dynamicConfigCache  = dynamicConfigCache;
 }