Dela via


ITransformFactory.Validate Method

Definition

Checks if the given transform values match a known transform, and if those values have any errors.

public bool Validate (Yarp.ReverseProxy.Transforms.Builder.TransformRouteValidationContext context, System.Collections.Generic.IReadOnlyDictionary<string,string> transformValues);
abstract member Validate : Yarp.ReverseProxy.Transforms.Builder.TransformRouteValidationContext * System.Collections.Generic.IReadOnlyDictionary<string, string> -> bool
Public Function Validate (context As TransformRouteValidationContext, transformValues As IReadOnlyDictionary(Of String, String)) As Boolean

Parameters

context
TransformRouteValidationContext

The context to add any generated errors to.

transformValues
IReadOnlyDictionary<String,String>

The transform values to validate.

Returns

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

Applies to