Class RouteModel
Immutable representation of the portions of a route that only change in reaction to configuration changes.
Inheritance
System.Object
RouteModel
Namespace: Yarp.ReverseProxy.Model
Assembly: Yarp.ReverseProxy.dll
Syntax
public sealed class RouteModel : object
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
| Improve this Doc View SourceRouteModel(RouteConfig, ClusterState, HttpTransformer)
Creates a new instance.
Declaration
public RouteModel(RouteConfig config, ClusterState cluster, HttpTransformer transformer)
Parameters
Type | Name | Description |
---|---|---|
RouteConfig | config | |
ClusterState | cluster | |
HttpTransformer | transformer |
Properties
| Improve this Doc View SourceCluster
The ClusterState instance associated with this route.
Declaration
public ClusterState Cluster { get; }
Property Value
Type | Description |
---|---|
ClusterState |
Config
The configuration data used to build this route.
Declaration
public RouteConfig Config { get; }
Property Value
Type | Description |
---|---|
RouteConfig |
Transformer
Transforms to apply for this route.
Declaration
public HttpTransformer Transformer { get; }
Property Value
Type | Description |
---|---|
HttpTransformer |