Class AggregateValidator
Run a series of validators, consolidate their errors, and return.
Inherited Members
Namespace: Mangrove.MetricSetSyntaxTree.Operations
Assembly: MetricSetSyntaxTree.dll
Syntax
public class AggregateValidator : LoggingValidatorBase, IMetricsPlanValidator, IGenericMetricsPlanTransformer<List<string>>
Constructors
View SourceAggregateValidator(IMetricsPlanValidator[])
Accepts a param-style list of validators to run in order.
Declaration
public AggregateValidator(params IMetricsPlanValidator[] validators)
Parameters
Type | Name | Description |
---|---|---|
IMetricsPlanValidator[] | validators | Validators to use. |
AggregateValidator(IReadOnlyCollection<IMetricsPlanValidator>, ILogger)
Accepts an ordered list of IMetricsPlanValidator that will be run in order.
Declaration
public AggregateValidator(IReadOnlyCollection<IMetricsPlanValidator> validators, ILogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<IMetricsPlanValidator> | validators | Array of validators to use. |
ILogger | logger |
Methods
View SourceTransformWithTracing(MetricsPlan)
Run the validators in order, consolidating errors, and return all errors.
Declaration
public override List<string> TransformWithTracing(MetricsPlan plan)
Parameters
Type | Name | Description |
---|---|---|
MetricsPlan | plan |
Returns
Type | Description |
---|---|
List<String> |