Delen via


QnAMakerRuntimeClientContext class

Uitbreiding

Constructors

QnAMakerRuntimeClientContext(ServiceClientCredentials, string, ServiceClientOptions)

Initialiseert een nieuw exemplaar van de klasse QnAMakerRuntimeClientContext.

Eigenschappen

credentials
runtimeEndpoint

Overgenomen methoden

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Verzend een HTTP-aanvraag die is ingevuld met behulp van de opgegeven OperationSpec.

sendRequest(RequestPrepareOptions | WebResourceLike)

Verzend de opgegeven httpRequest.

Constructordetails

QnAMakerRuntimeClientContext(ServiceClientCredentials, string, ServiceClientOptions)

Initialiseert een nieuw exemplaar van de klasse QnAMakerRuntimeClientContext.

new QnAMakerRuntimeClientContext(credentials: ServiceClientCredentials, runtimeEndpoint: string, options?: ServiceClientOptions)

Parameters

credentials
ServiceClientCredentials

Abonnementsreferenties waarmee het clientabonnement uniek wordt geïdentificeerd.

runtimeEndpoint

string

QnA Maker App Service-eindpunt (bijvoorbeeld: https://{qnaservice-hostname}.azurewebsites.net).

options
ServiceClientOptions

De parameteropties

Eigenschapdetails

credentials

credentials: ServiceClientCredentials

Waarde van eigenschap

runtimeEndpoint

runtimeEndpoint: string

Waarde van eigenschap

string

Details overgenomen methode

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Verzend een HTTP-aanvraag die is ingevuld met behulp van de opgegeven OperationSpec.

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>

Parameters

operationArguments
OperationArguments

De argumenten waaruit de sjabloonwaarden van de HTTP-aanvraag worden ingevuld.

operationSpec
OperationSpec

De OperationSpec die moet worden gebruikt om de httpRequest te vullen.

callback

ServiceCallback<any>

De callback die moet worden aangeroepen wanneer het antwoord wordt ontvangen.

Retouren

Promise<RestResponse>

overgenomen van msRest.ServiceClient.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Verzend de opgegeven httpRequest.

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

Parameters

Retouren

overgenomen van msRest.ServiceClient.sendRequest