Class ResourceValidatorFactory
- Namespace
- FoundationaLLM.Common.Validation
- Assembly
- FoundationaLLM.Common.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public class ResourceValidatorFactory : IResourceValidatorFactory
- Inheritance
-
ResourceValidatorFactory
- Implements
- Inherited Members
- Extension Methods
Constructors
ResourceValidatorFactory(IServiceProvider)
public ResourceValidatorFactory(IServiceProvider serviceProvider)
Parameters
serviceProvider
IServiceProvider
Methods
GetValidator(Type)
Gets a validator for the Type parameter, providing a non-generic option to resolve validators at runtime.
public object? GetValidator(Type type)
Parameters
type
TypeThe type of object being validated.
Returns
GetValidator<T>()
Gets a validator for the specified type.
public IValidator<T>? GetValidator<T>() where T : class
Returns
- IValidator<T>
Type Parameters
T
The type of object being validated.