Class HttpClientTransport
An HttpPipelineTransport implementation that uses System.Net.Http.HttpClient as the transport.
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Core.dll
Syntax
public class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport, IDisposable
Constructors
HttpClientTransport()
Creates a new HttpClientTransport instance using default configuration.
Declaration
public HttpClientTransport ();
HttpClientTransport(HttpClient)
Creates a new instance of HttpClientTransport using the provided client instance.
Declaration
public HttpClientTransport (System.Net.Http.HttpClient client);
Parameters
|
System.Net.Http.HttpClient
client
The instance of System.Net.Http.HttpClient to use. |
HttpClientTransport(HttpMessageHandler)
Creates a new instance of HttpClientTransport using the provided client instance.
Declaration
public HttpClientTransport (System.Net.Http.HttpMessageHandler messageHandler);
Parameters
|
System.Net.Http.HttpMessageHandler
messageHandler
The instance of System.Net.Http.HttpMessageHandler to use. |
Fields
Shared
Methods
CreateRequest()
Creates a new transport specific instance of Request. This should not be called directly, CreateRequest() or CreateMessage() should be used instead.
Declaration
public override sealed Azure.Core.Request CreateRequest ();
Returns
|
Request
|
Dispose()
Disposes the underlying System.Net.Http.HttpClient.
Declaration
public void Dispose ();
Process(HttpMessage)
Sends the request contained by the message and sets the Response property to received response synchronously.
Declaration
public override void Process (Azure.Core.HttpMessage message);
Parameters
|
HttpMessage
message
The HttpMessage containing request and response. |
ProcessAsync(HttpMessage)
Sends the request contained by the message and sets the Response property to received response asynchronously.
Declaration
public override System.Threading.Tasks.ValueTask ProcessAsync (Azure.Core.HttpMessage message);
Parameters
|
HttpMessage
message
The HttpMessage containing request and response. |
Returns
|
System.Threading.Tasks.ValueTask
|