Compartir a través de


GraphClientFactory.CreatePipeline Method

Definition

Creates an instance of an HttpMessageHandler using the DelegatingHandler instances provided by handlers. The resulting pipeline can be used to manually create HttpClient or HttpMessageInvoker instances with customized message handlers.

public static System.Net.Http.HttpMessageHandler CreatePipeline (System.Collections.Generic.IEnumerable<System.Net.Http.DelegatingHandler> handlers, System.Net.Http.HttpMessageHandler finalHandler = default);
static member CreatePipeline : seq<System.Net.Http.DelegatingHandler> * System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpMessageHandler
Public Shared Function CreatePipeline (handlers As IEnumerable(Of DelegatingHandler), Optional finalHandler As HttpMessageHandler = Nothing) As HttpMessageHandler

Parameters

handlers
IEnumerable<DelegatingHandler>

An ordered list of DelegatingHandler instances to be invoked as part of sending an HttpRequestMessage and receiving an HttpResponseMessage. The handlers are invoked in a top-down fashion. That is, the first entry is invoked first for an outbound request message but last for an inbound response message.

finalHandler
HttpMessageHandler

The inner handler represents the destination of the HTTP message channel.

Returns

The HTTP message channel.

Applies to