Del via


QnAMakerDialog.GetQnAMakerClientAsync(DialogContext) Method

Definition

Gets an IQnAMakerClient to use to access the QnA Maker knowledge base.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.IQnAMakerClient> GetQnAMakerClientAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc);
abstract member GetQnAMakerClientAsync : Microsoft.Bot.Builder.Dialogs.DialogContext -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.IQnAMakerClient>
override this.GetQnAMakerClientAsync : Microsoft.Bot.Builder.Dialogs.DialogContext -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.IQnAMakerClient>
Protected Overridable Function GetQnAMakerClientAsync (dc As DialogContext) As Task(Of IQnAMakerClient)

Parameters

dc
DialogContext

The DialogContext for the current turn of conversation.

Returns

A Task representing the asynchronous operation.

Remarks

If the task is successful, the result contains the QnA Maker client to use.

Applies to