Delen via


ClusterState Constructors

Definition

Overloads

ClusterState(String)

Creates a new instance. This constructor is for tests and infrastructure, this type is normally constructed by the configuration loading infrastructure.

ClusterState(String, ClusterModel)

Constructor overload to additionally initialize the ClusterModel for tests and infrastructure, such as updating the ReverseProxyFeature via HttpContextFeaturesExtensions

ClusterState(String)

Source:
ClusterState.cs
Source:
ClusterState.cs

Creates a new instance. This constructor is for tests and infrastructure, this type is normally constructed by the configuration loading infrastructure.

public ClusterState (string clusterId);
new Yarp.ReverseProxy.Model.ClusterState : string -> Yarp.ReverseProxy.Model.ClusterState
Public Sub New (clusterId As String)

Parameters

clusterId
String

Applies to

ClusterState(String, ClusterModel)

Source:
ClusterState.cs
Source:
ClusterState.cs

Constructor overload to additionally initialize the ClusterModel for tests and infrastructure, such as updating the ReverseProxyFeature via HttpContextFeaturesExtensions

public ClusterState (string clusterId, Yarp.ReverseProxy.Model.ClusterModel model);
new Yarp.ReverseProxy.Model.ClusterState : string * Yarp.ReverseProxy.Model.ClusterModel -> Yarp.ReverseProxy.Model.ClusterState
Public Sub New (clusterId As String, model As ClusterModel)

Parameters

clusterId
String
model
ClusterModel

Exceptions

model is null.

Applies to