public EmailSenderService( IOptions <EmailSenderOptions> optionsAccessor, IMailTemplatesCache mailTemplatesCache) { options = optionsAccessor.Value; this.mailTemplatesCache = mailTemplatesCache; }
public EmailSenderService( IOptionsMonitor <EmailSenderOptions> emailSenderOptions, IMailTemplatesCache mailTemplatesCache) { this.emailSenderOptions = emailSenderOptions; this.mailTemplatesCache = mailTemplatesCache; }
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; }