Class RouteModel
- Namespace
- Yarp.ReverseProxy.Model
- Assembly
- Yarp.ReverseProxy.dll
Immutable representation of the portions of a route that only change in reaction to configuration changes.
public sealed class RouteModel
- Inheritance
-
RouteModel
- Inherited Members
Remarks
All members must remain immutable to avoid thread safety issues. Instead, instances of RouteModel are replaced in their entirety when values need to change.
Constructors
RouteModel(RouteConfig, ClusterState?, HttpTransformer)
Creates a new instance.
public RouteModel(RouteConfig config, ClusterState? cluster, HttpTransformer transformer)
Parameters
config
RouteConfigcluster
ClusterStatetransformer
HttpTransformer
Properties
Cluster
The ClusterState instance associated with this route.
public ClusterState? Cluster { get; }
Property Value
Config
The configuration data used to build this route.
public RouteConfig Config { get; }
Property Value
Transformer
Transforms to apply for this route.
public HttpTransformer Transformer { get; }