GraphClientFactory.CreatePipeline 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.
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.