Interface ITransformFactory
Validates and builds transforms from the given parameters
Namespace: Yarp.ReverseProxy.Transforms.Builder
Assembly: Yarp.ReverseProxy.dll
Syntax
public interface ITransformFactory
Methods
| Improve this Doc View SourceBuild(TransformBuilderContext, IReadOnlyDictionary<String, String>)
Checks if the given transform values match a known transform, and if so, generates a transform and adds it to the context. This can throw if the transform values are invalid.
Declaration
bool Build(TransformBuilderContext context, IReadOnlyDictionary<string, string> transformValues)
Parameters
Type | Name | Description |
---|---|---|
TransformBuilderContext | context | The context to add any generated transforms to. |
IReadOnlyDictionary<System.String, System.String> | transformValues | The transform values to use as input. |
Returns
Type | Description |
---|---|
System.Boolean | True if this factory matches the given transform, otherwise false. |
Validate(TransformRouteValidationContext, IReadOnlyDictionary<String, String>)
Checks if the given transform values match a known transform, and if those values have any errors.
Declaration
bool Validate(TransformRouteValidationContext context, IReadOnlyDictionary<string, string> transformValues)
Parameters
Type | Name | Description |
---|---|---|
TransformRouteValidationContext | context | The context to add any generated errors to. |
IReadOnlyDictionary<System.String, System.String> | transformValues | The transform values to validate. |
Returns
Type | Description |
---|---|
System.Boolean | True if this factory matches the given transform, otherwise false. |