HttpClientPipelineTransport.OnSendingRequest 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.
A method that can be overridden by derived types to extend the default HttpClientPipelineTransport logic. It is called from ProcessCore(PipelineMessage) prior to sending the HTTP request.
protected virtual void OnSendingRequest (System.ClientModel.Primitives.PipelineMessage message, System.Net.Http.HttpRequestMessage httpRequest);
abstract member OnSendingRequest : System.ClientModel.Primitives.PipelineMessage * System.Net.Http.HttpRequestMessage -> unit
override this.OnSendingRequest : System.ClientModel.Primitives.PipelineMessage * System.Net.Http.HttpRequestMessage -> unit
Protected Overridable Sub OnSendingRequest (message As PipelineMessage, httpRequest As HttpRequestMessage)
Parameters
- message
- PipelineMessage
The PipelineMessage containing the PipelineRequest resulting from the processing of the policies in the ClientPipeline containing this transport.
- httpRequest
- HttpRequestMessage
The HttpRequestMessage created by the transport that will be sent to the service using this transport's HttpClient instance.
Applies to
Azure SDK for .NET