Class ClusterModel
- Namespace
- Yarp.ReverseProxy.Model
- Assembly
- Yarp.ReverseProxy.dll
Immutable representation of the portions of a cluster that only change in reaction to configuration changes (e.g. http client options).
public sealed class ClusterModel
- Inheritance
-
ClusterModel
- Inherited Members
Remarks
All members must remain immutable to avoid thread safety issues. Instead, instances of ClusterModel are replaced in their entirety when values need to change.
Constructors
ClusterModel(ClusterConfig, HttpMessageInvoker)
Creates a new Instance.
public ClusterModel(ClusterConfig config, HttpMessageInvoker httpClient)
Parameters
config
ClusterConfighttpClient
HttpMessageInvoker
Properties
Config
The config for this cluster.
public ClusterConfig Config { get; }
Property Value
HttpClient
An HttpMessageInvoker that used for proxying requests to an upstream server.
public HttpMessageInvoker HttpClient { get; }