Table of Contents

Interface ITransformFactory

Namespace
Yarp.ReverseProxy.Transforms.Builder
Assembly
Yarp.ReverseProxy.dll

Validates and builds transforms from the given parameters

public interface ITransformFactory

Methods

Build(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.

bool Build(TransformBuilderContext context, IReadOnlyDictionary<string, string> transformValues)

Parameters

context TransformBuilderContext

The context to add any generated transforms to.

transformValues IReadOnlyDictionary<string, string>

The transform values to use as input.

Returns

bool

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.

bool Validate(TransformRouteValidationContext context, IReadOnlyDictionary<string, string> transformValues)

Parameters

context TransformRouteValidationContext

The context to add any generated errors to.

transformValues IReadOnlyDictionary<string, string>

The transform values to validate.

Returns

bool

True if this factory matches the given transform, otherwise false.