Jaa


IConfigurationBuilderExtensions.UseQnAMakerSettings Method

Definition

Setup configuration to utilize the settings file generated by bf qnamaker:build.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder UseQnAMakerSettings (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string botRoot, string qnaRegion, string environment);
static member UseQnAMakerSettings : Microsoft.Extensions.Configuration.IConfigurationBuilder * string * string * string -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function UseQnAMakerSettings (builder As IConfigurationBuilder, botRoot As String, qnaRegion As String, environment As String) As IConfigurationBuilder

Parameters

builder
IConfigurationBuilder

Configuration builder to modify.

botRoot
String

Root folder for bot assets.

qnaRegion
String

Language region for QnA, e.g, en-us.

environment
String

Running enviroment, e.g, development or alias.

Returns

Modified configuration builder.

Remarks

This will pick up --environment as the environment to target. If environment is Development it will use the name of the logged in user. This will pick up --root as the root folder to run in.

Applies to