MultiLanguageGenerator.TryGetGenerator Method

Definition

Implementation of lookup by locale. This uses internal dictionary to lookup.

public override bool TryGetGenerator (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, string locale, out Lazy<Microsoft.Bot.Builder.Dialogs.Adaptive.LanguageGenerator> languageGenerator);
override this.TryGetGenerator : Microsoft.Bot.Builder.Dialogs.DialogContext * string * Lazy -> bool
Public Overrides Function TryGetGenerator (dialogContext As DialogContext, locale As String, ByRef languageGenerator As Lazy(Of LanguageGenerator)) As Boolean

Parameters

dialogContext
DialogContext

Context for the current turn of conversation with the user.

locale
String

locale.

languageGenerator
Lazy<LanguageGenerator>

generator to return.

Returns

true if found.

Applies to