Share via


TemplateEngineLanguageGenerator.GenerateAsync Method

Definition

Method to generate text from given template and data.

public override System.Threading.Tasks.Task<object> GenerateAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, string template, object data, System.Threading.CancellationToken cancellationToken = default);
override this.GenerateAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
Public Overrides Function GenerateAsync (dialogContext As DialogContext, template As String, data As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

dialogContext
DialogContext

Context for the current turn of conversation.

template
String

template to evaluate.

data
Object

data to bind to.

cancellationToken
CancellationToken

the CancellationToken for the task.

Returns

generated text.

Applies to