Show / Hide Table of Contents

Class ClusterModel

Immutable representation of the portions of a cluster that only change in reaction to configuration changes (e.g. http client options).

Inheritance
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 Source

ClusterModel(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 Source

Config

The config for this cluster.

Declaration
public ClusterConfig Config { get; }
Property Value
Type Description
ClusterConfig
| Improve this Doc View Source

HttpClient

An that used for proxying requests to an upstream server.

Declaration
public HttpMessageInvoker HttpClient { get; }
Property Value
Type Description
HttpMessageInvoker
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX