Class RouteConfigTransformExtensions
Extensions for adding transforms to RouteConfig.
Inheritance
System.Object
RouteConfigTransformExtensions
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public static class RouteConfigTransformExtensions : object
Methods
| Improve this Doc View SourceWithTransform(RouteConfig, Action<IDictionary<String, String>>)
Clones the RouteConfig and adds the transform.
Declaration
public static RouteConfig WithTransform(this RouteConfig route, Action<IDictionary<string, string>> createTransform)
Parameters
Type | Name | Description |
---|---|---|
RouteConfig | route | |
Action<IDictionary<System.String, System.String>> | createTransform |
Returns
Type | Description |
---|---|
RouteConfig | The cloned route with the new transform. |