Interface ITemplateRegistry
A registry of named Razor email templates.
public interface ITemplateRegistry
Methods
Contains(string)
Returns true when a template with the given name is registered.
bool Contains(string name)
Parameters
namestring
Returns
Get(string)
Returns the content of a named template.
string Get(string name)
Parameters
namestring
Returns
Exceptions
- KeyNotFoundException
Thrown when the template is not registered.
Register(string, string)
Registers a named template, replacing any existing template with the same name.
void Register(string name, string content)