Ejemplo n.º 1
0
 internal IEmailTemplateService InstanceEmailTemplateService(IKernel kernel)
 {
     TemplateServiceConfiguration configuration = new TemplateServiceConfiguration
     {
         Activator = new WindsorTemplateActivator(kernel),
         BaseTemplateType = typeof(ExtendedTemplate<>),
         Resolver = new EmbeddedTemplateResolver(typeof(EmailTemplate))
     };
     IEmailTemplateService service = new EmailTemplateService(configuration);
     return service;
 }
Ejemplo n.º 2
0
 public static IEmailTemplateService GetRazorTemplateService(Type type)
 {
     TemplateServiceConfiguration configuration = new TemplateServiceConfiguration
     {
         Resolver = new EmbeddedTemplateResolver(type)
     };
     IEmailTemplateService service = new EmailTemplateService(configuration);
     return service;
 }