Table of Contents

Class DefaultContentValidator

Namespace
Biwen.QuickApi.Contents
Assembly
Biwen.QuickApi.Contents.dll
public class DefaultContentValidator : IContentValidator
Inheritance
DefaultContentValidator
Implements
Inherited Members
Extension Methods

Constructors

DefaultContentValidator()

public DefaultContentValidator()

Methods

CustomValidate<T>(T, PropertyInfo, IFieldType, List<ValidationResult>)

protected virtual void CustomValidate<T>(T content, PropertyInfo property, IFieldType fieldValue, List<ValidationResult> validationResults) where T : class, IContent

Parameters

content T
property PropertyInfo
fieldValue IFieldType
validationResults List<ValidationResult>

Type Parameters

T

ValidateAsync<T>(T)

public virtual Task<ValidationResult> ValidateAsync<T>(T content) where T : class, IContent

Parameters

content T

Returns

Task<ValidationResult>

Type Parameters

T

ValidateProperty<T>(T, PropertyInfo, List<ValidationResult>)

protected virtual void ValidateProperty<T>(T content, PropertyInfo property, List<ValidationResult> validationResults) where T : class, IContent

Parameters

content T
property PropertyInfo
validationResults List<ValidationResult>

Type Parameters

T