ServiceClient class
ServiceClient hizmet istekleri gönderir ve yanıtları alır.
Oluşturucular
Service |
ServiceClient oluşturucu |
Yöntemler
send |
Sağlanan OperationSpec kullanılarak doldurulan bir HTTP isteği gönderin. |
send |
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
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
- options
Döndürülenler
Promise<HttpOperationResponse>