Aracılığıyla paylaş


ServiceClient class

ServiceClient hizmet istekleri gönderir ve yanıtları alır.

Oluşturucular

ServiceClient(TokenCredential | ServiceClientCredentials, ServiceClientOptions)

ServiceClient oluşturucu

Yöntemler

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Sağlanan OperationSpec kullanılarak doldurulan bir HTTP isteği gönderin.

sendRequest(WebResourceLike | RequestPrepareOptions)

Sağlanan httpRequest'i gönderin.

Oluşturucu Ayrıntıları

ServiceClient(TokenCredential | ServiceClientCredentials, ServiceClientOptions)

ServiceClient oluşturucu

new ServiceClient(credentials?: TokenCredential | ServiceClientCredentials, options?: ServiceClientOptions)

Parametreler

credentials

TokenCredential | ServiceClientCredentials

Hizmetle kimlik doğrulaması için kullanılan kimlik bilgileri.

options
ServiceClientOptions

İstemcinin davranışını yöneten hizmet istemcisi seçenekleri.

Yöntem Ayrıntıları

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Sağlanan OperationSpec kullanılarak doldurulan bir HTTP isteği gönderin.

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

Parametreler

operationArguments
OperationArguments

HTTP isteğinin şablonlu değerlerinin doldurulacağı bağımsız değişkenler.

operationSpec
OperationSpec

httpRequest'i doldurmak için kullanılacak OperationSpec.

callback

ServiceCallback<any>

Yanıt alındığında çağrılacak geri çağırma.

Döndürülenler

Promise<RestResponse>

sendRequest(WebResourceLike | RequestPrepareOptions)

Sağlanan httpRequest'i gönderin.

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

Parametreler

Döndürülenler