Esempio n. 1
0
 public EmailTemplateProvider(
     IOptions <EmailTemplateOptions> options,
     IServiceProvider serviceProvider,
     ITemplateLocalizer templateLocalizer)
 {
     ServiceProvider   = serviceProvider;
     TemplateLocalizer = templateLocalizer;
     Options           = options.Value;
 }
Esempio n. 2
0
 public EmailTemplateProvider(IEmailTemplateDefinitionManager emailTemplateDefinitionManager,
                              ITemplateLocalizer templateLocalizer, IStringLocalizerFactory stringLocalizerFactory,
                              IOptions <EmailTemplateOptions> options)
 {
     EmailTemplateDefinitionManager = emailTemplateDefinitionManager;
     TemplateLocalizer      = templateLocalizer;
     StringLocalizerFactory = stringLocalizerFactory;
     Options = options.Value;
 }