Class ClusterModel
Immutable representation of the portions of a cluster that only change in reaction to configuration changes (e.g. http client options).
Inheritance
System.Object
ClusterModel
Namespace: Yarp.ReverseProxy.Model
Assembly: Yarp.ReverseProxy.dll
Syntax
public sealed class ClusterModel : object
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
| Improve this Doc View SourceClusterModel(ClusterConfig, HttpMessageInvoker)
Creates a new Instance.
Declaration
public ClusterModel(ClusterConfig config, HttpMessageInvoker httpClient)
Parameters
Type | Name | Description |
---|---|---|
ClusterConfig | config | |
HttpMessageInvoker | httpClient |
Properties
| Improve this Doc View SourceConfig
The config for this cluster.
Declaration
public ClusterConfig Config { get; }
Property Value
Type | Description |
---|---|
ClusterConfig |
HttpClient
An
Declaration
public HttpMessageInvoker HttpClient { get; }
Property Value
Type | Description |
---|---|
HttpMessageInvoker |