ConnectorClientBase.CallConnectorAsync 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.
Overloads
| Name | Description |
|---|---|
| CallConnectorAsync(HttpMethod, String, Object, CancellationToken) |
Sends a connector API request with no response body. Uses the Azure.Core HttpPipeline for retry, authentication, and diagnostics. |
| CallConnectorAsync<TResponse>(HttpMethod, String, Object, CancellationToken) |
Sends a connector API request and deserializes the JSON response. Uses the Azure.Core HttpPipeline for retry, authentication, and diagnostics. |
CallConnectorAsync(HttpMethod, String, Object, CancellationToken)
Sends a connector API request with no response body. Uses the Azure.Core HttpPipeline for retry, authentication, and diagnostics.
protected virtual System.Threading.Tasks.Task CallConnectorAsync(System.Net.Http.HttpMethod method, string path, object? body = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CallConnectorAsync : System.Net.Http.HttpMethod * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CallConnectorAsync : System.Net.Http.HttpMethod * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function CallConnectorAsync (method As HttpMethod, path As String, Optional body As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- method
- HttpMethod
The HTTP method.
- path
- String
The relative path or absolute URL.
- body
- Object
Optional request body (will be JSON-serialized).
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Applies to
CallConnectorAsync<TResponse>(HttpMethod, String, Object, CancellationToken)
Sends a connector API request and deserializes the JSON response. Uses the Azure.Core HttpPipeline for retry, authentication, and diagnostics.
protected virtual System.Threading.Tasks.Task<TResponse> CallConnectorAsync<TResponse>(System.Net.Http.HttpMethod method, string path, object? body = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CallConnectorAsync : System.Net.Http.HttpMethod * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Response>
override this.CallConnectorAsync : System.Net.Http.HttpMethod * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Response>
Protected Overridable Function CallConnectorAsync(Of TResponse) (method As HttpMethod, path As String, Optional body As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResponse)
Type Parameters
- TResponse
The response type.
Parameters
- method
- HttpMethod
The HTTP method.
- path
- String
The relative path or absolute URL.
- body
- Object
Optional request body (will be JSON-serialized).
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The deserialized response.