public EmailTemplateEngine(IEmailTemplateContentReader contentReader, string htmlTemplateSuffix, string textTemplateSuffix, string sharedTemplateSuffix) { Invariant.IsNotNull(contentReader, "contentReader"); ContentReader = contentReader; SharedTemplateSuffix = sharedTemplateSuffix; HtmlTemplateSuffix = htmlTemplateSuffix; TextTemplateSuffix = textTemplateSuffix; }
public RazorEmailTemplateEngine(IEmailTemplateContentReader contentReader, string sharedTemplateSuffix, string htmlTemplateSuffix, string textTemplateSuffix) { if (contentReader == null) { throw new ArgumentNullException("contentReader"); } _contentReader = contentReader; _sharedTemplateSuffix = sharedTemplateSuffix; _htmlTemplateSuffix = htmlTemplateSuffix; _textTemplateSuffix = textTemplateSuffix; _templateSuffixes = new Dictionary <string, string> { { _sharedTemplateSuffix, String.Empty }, { _htmlTemplateSuffix, ContentTypes.Html }, { _textTemplateSuffix, ContentTypes.Text } }; }
public RazorEmailTemplateEngine(IEmailTemplateContentReader contentReader, string sharedTemplateSuffix, string htmlTemplateSuffix, string textTemplateSuffix) { if (contentReader == null) { throw new ArgumentNullException("contentReader"); } _contentReader = contentReader; _sharedTemplateSuffix = sharedTemplateSuffix; _htmlTemplateSuffix = htmlTemplateSuffix; _textTemplateSuffix = textTemplateSuffix; _templateSuffixes = new Dictionary<string, string> { { _sharedTemplateSuffix, String.Empty }, { _htmlTemplateSuffix, ContentTypes.Html }, { _textTemplateSuffix, ContentTypes.Text } }; }
public EmailTemplateEngine(IEmailTemplateContentReader contentReader) : this(contentReader, DefaultHtmlTemplateSuffix, DefaultTextTemplateSuffix, DefaultSharedTemplateSuffix) { ContentReader = contentReader; }