コード例 #1
0
        public EmailHelper ApplyTemplate(string mailType, TemplatePipeline pipeline)
        {
            var messageToPersonalize = new TemplateMailMessage(_mailConfiguration, mailType);

            if (messageToPersonalize.Loaded)
            {
                var engine = new TemplateEngine(messageToPersonalize, pipeline);
                CurrentEngine = engine;
            }
            return(this);
        }
コード例 #2
0
 public TemplateEngine(TemplateMailMessage provider, TemplatePipeline pipeline)
 {
     TextProvider = provider;
     Pipeline     = pipeline;
 }