次の方法で共有


HttpClientPipelineTransport.OnSendingRequest Method

Definition

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