Interface IProxyStateLookup
Allows access to the proxy's current set of routes and clusters.
Assembly: Yarp.ReverseProxy.dll
Syntax
public interface IProxyStateLookup
Methods
|
Improve this Doc
View Source
GetClusters()
Enumerates all current clusters. This is thread safe but the collection may change mid enumeration if the configuration is reloaded.
Declaration
IEnumerable<ClusterState> GetClusters()
Returns
|
Improve this Doc
View Source
GetRoutes()
Enumerates all current routes. This is thread safe but the collection may change mid enumeration if the configuration is reloaded.
Declaration
IEnumerable<RouteModel> GetRoutes()
Returns
|
Improve this Doc
View Source
TryGetCluster(String, out ClusterState)
Retrieves a specific cluster by id, if present.
Declaration
bool TryGetCluster(string id, out ClusterState cluster)
Parameters
Returns
|
Improve this Doc
View Source
TryGetRoute(String, out RouteModel)
Retrieves a specific route by id, if present.
Declaration
bool TryGetRoute(string id, out RouteModel route)
Parameters
Returns