Table of Contents

Class TemplateRegistry

Namespace
MailForge.Templates
Assembly
MailForge.dll

Default in-memory ITemplateRegistry implementation.

public sealed class TemplateRegistry : ITemplateRegistry
Inheritance
TemplateRegistry
Implements
Inherited Members

Constructors

TemplateRegistry()

Initializes a new instance of the TemplateRegistry class.

public TemplateRegistry()

Methods

Contains(string)

Returns true when a template with the given name is registered.

public bool Contains(string name)

Parameters

name string

Returns

bool

Get(string)

Returns the content of a named template.

public string Get(string name)

Parameters

name string

Returns

string

Register(string, string)

Registers a named template, replacing any existing template with the same name.

public void Register(string name, string content)

Parameters

name string
content string