Table of Contents

Interface ITemplateRegistry

Namespace
MailForge.Templates
Assembly
MailForge.dll

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

name string

Returns

bool

Get(string)

Returns the content of a named template.

string Get(string name)

Parameters

name string

Returns

string

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)

Parameters

name string
content string