TemplateManager Class

Definition

TemplateManager manages set of ITemplateRenderer implementations.

public class TemplateManager
type TemplateManager = class
Public Class TemplateManager
Inheritance
TemplateManager

Remarks

ITemplateRenderer implements.

Constructors

TemplateManager()

Initializes a new instance of the TemplateManager class.

Properties

LanguageFallback

Gets or sets language fall-back policy.

Renderers

Gets or sets template renderers.

Methods

CreateTemplateActivity(String, Object)

Creates an Activity object of type equal to "Template" and value equal to a new TemplateOptions object.

GetLanguagePolicy()

Gets the value of the LanguageFallback property of the current instance.

List()

List registered template engines.

Register(ITemplateRenderer)

Add a template engine for binding templates.

RenderTemplate(ITurnContext, String, String, Object)

Render the template.

ReplyWith(ITurnContext, String, Object)

Send a reply with the template.

SetLanguagePolicy(IEnumerable<String>)

Initializes the LanguageFallback property of the current instance.

Applies to