MultiLanguageGeneratorBase.GenerateAsync(DialogContext, String, Object, CancellationToken) Method

Definition

Find a language generator that matches the current context locale.

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

The template.

data
Object

data to bind to.

cancellationToken
CancellationToken

the CancellationToken for the task.

Returns

Task<Object>

The generator.

Applies to