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
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
ClusterConfigTarget cluster.
allDestinations
IReadOnlyList<DestinationState>All destinations configured for the target cluster.