Table of Contents

Interface IAvailableDestinationsPolicy

Namespace
Yarp.ReverseProxy.Health
Assembly
Yarp.ReverseProxy.dll

Policy evaluating which destinations should be available for proxying requests to.

public interface IAvailableDestinationsPolicy

Properties

Name

Policy name.

string Name { get; }

Property Value

string

Methods

GetAvailalableDestinations(ClusterConfig, IReadOnlyList<DestinationState>)

Reviews all given destinations and returns the ones available for proxying requests to.

IReadOnlyList<DestinationState> GetAvailalableDestinations(ClusterConfig config, IReadOnlyList<DestinationState> allDestinations)

Parameters

config ClusterConfig

Target cluster.

allDestinations IReadOnlyList<DestinationState>

All destinations configured for the target cluster.

Returns

IReadOnlyList<DestinationState>