Interface IResourceValidatorFactory
- Namespace
- FoundationaLLM.Common.Interfaces
- Assembly
- FoundationaLLM.Common.dll
Provides methods for getting validators.
public interface IResourceValidatorFactory
- Extension Methods
Methods
GetValidator(Type)
Gets a validator for the Type parameter, providing a non-generic option to resolve validators at runtime.
object? GetValidator(Type type)
Parameters
type
TypeThe type of object being validated.
Returns
GetValidator<T>()
Gets a validator for the specified type.
IValidator<T>? GetValidator<T>() where T : class
Returns
- IValidator<T>
Type Parameters
T
The type of object being validated.