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>IValidatorIEnumerable<IValidationRule>
- Inherited Members
-
AbstractValidator<T>.Validate(T)AbstractValidator<T>.Validate(ValidationContext<T>)AbstractValidator<T>.CreateDescriptor()AbstractValidator<T>.WhenAsync(Func<T, ValidationContext<T>, CancellationToken, Task<bool>>, Action)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>.CascadeModeAbstractValidator<T>.ClassLevelCascadeModeAbstractValidator<T>.RuleLevelCascadeMode
- Extension Methods
Methods
ValidConfigurationReference(AttachmentFile)
Validates the value of a specified configuration reference.
protected bool ValidConfigurationReference(AttachmentFile attachment)
Parameters
attachment
AttachmentFileThe attachment object being validated.
Returns
- bool
True if the value of the configuration reference is valid, False otherwise.