Share via


LanguageGeneratorExtensions.UseLanguageGeneration Method

Definition

Overloads

UseLanguageGeneration(DialogManager, LanguageGenerator)

Register ILanguageGenerator as default langugage generator.

UseLanguageGeneration(DialogManager, String)

Register default LG file as language generation.

UseLanguageGeneration(DialogManager, LanguageGenerator)

Register ILanguageGenerator as default langugage generator.

public static Microsoft.Bot.Builder.Dialogs.DialogManager UseLanguageGeneration (this Microsoft.Bot.Builder.Dialogs.DialogManager dialogManager, Microsoft.Bot.Builder.Dialogs.Adaptive.LanguageGenerator languageGenerator);
static member UseLanguageGeneration : Microsoft.Bot.Builder.Dialogs.DialogManager * Microsoft.Bot.Builder.Dialogs.Adaptive.LanguageGenerator -> Microsoft.Bot.Builder.Dialogs.DialogManager
<Extension()>
Public Function UseLanguageGeneration (dialogManager As DialogManager, languageGenerator As LanguageGenerator) As DialogManager

Parameters

dialogManager
DialogManager

botAdapter to add services to.

languageGenerator
LanguageGenerator

LanguageGenerator to use.

Returns

botAdapter.

Applies to

UseLanguageGeneration(DialogManager, String)

Register default LG file as language generation.

public static Microsoft.Bot.Builder.Dialogs.DialogManager UseLanguageGeneration (this Microsoft.Bot.Builder.Dialogs.DialogManager dialogManager, string defaultLg = default);
static member UseLanguageGeneration : Microsoft.Bot.Builder.Dialogs.DialogManager * string -> Microsoft.Bot.Builder.Dialogs.DialogManager
<Extension()>
Public Function UseLanguageGeneration (dialogManager As DialogManager, Optional defaultLg As String = Nothing) As DialogManager

Parameters

dialogManager
DialogManager

The BotAdapter to add services to.

defaultLg
String

Default LG Resource Id (default: main.lg).

Returns

The BotAdapter.

Applies to