QnAMakerDialog.GetQnAMakerClientAsync(DialogContext) 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.
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
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.