Table of Contents

Class AttachmentValidator<T>

Namespace
FoundationaLLM.Attachment.Validation
Assembly
FoundationaLLM.Attachment.dll

Base validator for attachments.

public class AttachmentValidator<T> : AbstractValidator<T>, IValidator<T>, IValidator, IEnumerable<IValidationRule>, IEnumerable where T : AttachmentFile

Type Parameters

T

The type of attachment to validate.

Inheritance
AbstractValidator<T>
AttachmentValidator<T>
Implements
IValidator<T>
IValidator
IEnumerable<IValidationRule>
Inherited Members
AbstractValidator<T>.Validate(T)
AbstractValidator<T>.Validate(ValidationContext<T>)
AbstractValidator<T>.CreateDescriptor()
AbstractValidator<T>.Include(IValidator<T>)
AbstractValidator<T>.GetEnumerator()
AbstractValidator<T>.PreValidate(ValidationContext<T>, ValidationResult)
AbstractValidator<T>.RaiseValidationException(ValidationContext<T>, ValidationResult)
AbstractValidator<T>.OnRuleAdded(IValidationRule<T>)
AbstractValidator<T>.CascadeMode
AbstractValidator<T>.ClassLevelCascadeMode
AbstractValidator<T>.RuleLevelCascadeMode
Extension Methods

Methods

ValidConfigurationReference(AttachmentFile)

Validates the value of a specified configuration reference.

protected bool ValidConfigurationReference(AttachmentFile attachment)

Parameters

attachment AttachmentFile

The attachment object being validated.

Returns

bool

True if the value of the configuration reference is valid, False otherwise.