Skip to content

Commit

Permalink
Update TestingValidatorTypeCache.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 23, 2023
1 parent 71928fa commit 813f4fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class TestingValidatorTypeCache(List<Result> scanResults)
{
static Type validatorType = typeof(IValidator<>);
ConcurrentDictionary<Type, ValidatorInfo> typeCache = new();
ConcurrentDictionary<Type, ValidatorInfo> typeCache = [];

public bool TryGetValidators(Type messageType, IServiceProvider builder, out IEnumerable<IValidator> validators)
{
Expand Down

0 comments on commit 813f4fd

Please sign in to comment.