Table of Contents

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 ClusterConfig
httpClient HttpMessageInvoker

Properties

Config

The config for this cluster.

public ClusterConfig Config { get; }

Property Value

ClusterConfig

HttpClient

An HttpMessageInvoker that used for proxying requests to an upstream server.

public HttpMessageInvoker HttpClient { get; }

Property Value

HttpMessageInvoker