Interface IClusterDestinationsUpdater
Updates the cluster's destination collections.
Namespace: Yarp.ReverseProxy.Health
Assembly: Yarp.ReverseProxy.dll
Syntax
public interface IClusterDestinationsUpdater
Methods
| Improve this Doc View SourceUpdateAllDestinations(ClusterState)
Updates the cluster's collection of all configured destinations. Call this after destinations have been added, removed, or their configuration changed. This does not need to be called for state updates like health, use UpdateAvailableDestinations for state updates.
Declaration
void UpdateAllDestinations(ClusterState cluster)
Parameters
Type | Name | Description |
---|---|---|
ClusterState | cluster | The ClusterState owing the destinations. |
UpdateAvailableDestinations(ClusterState)
Updates the cluster's collection of destination available for proxying requests to. Call this if health state has changed for any destinations.
Declaration
void UpdateAvailableDestinations(ClusterState cluster)
Parameters
Type | Name | Description |
---|---|---|
ClusterState | cluster | The ClusterState owing the destinations. |