fix: type cache reset when metadata updates occure
This commit is contained in:
parent
22142882b5
commit
21b6f04f8c
3 changed files with 14 additions and 0 deletions
|
|
@ -22,6 +22,11 @@ internal sealed class DispatchingValidator : IValidator
|
|||
_serviceProvider = serviceProvider;
|
||||
}
|
||||
|
||||
public static void ClearCache(Type[]? _)
|
||||
{
|
||||
ValidatorsHandlers.Clear();
|
||||
}
|
||||
|
||||
public Validation Validate(ValidationContext context)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue