TemplateEngineLanguageGenerator.GenerateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.