Interface IForwarderHttpClientFactory
Provides a method to create instances of
Namespace: Yarp.ReverseProxy.Forwarder
Assembly: Yarp.ReverseProxy.dll
Syntax
public interface IForwarderHttpClientFactory
Remarks
This is somewhat similarly to System.Net.Http.IHttpClientFactory
,
except that this factory class is meant for direct use,
which the forwarder requires in order to keep separate pools for each cluster.
Methods
| Improve this Doc View SourceCreateClient(ForwarderHttpClientContext)
Creates and configures an
Declaration
HttpMessageInvoker CreateClient(ForwarderHttpClientContext context)
Parameters
Type | Name | Description |
---|---|---|
ForwarderHttpClientContext | context | An ForwarderHttpClientContext carrying old and new cluster configurations. |
Returns
Type | Description |
---|---|
HttpMessageInvoker |
Remarks
A call to CreateClient(ForwarderHttpClientContext) can return either
a new