From 813f4fd2d0386f847bd07e0b6de87887cd9799d6 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 24 Nov 2023 10:03:30 +1100 Subject: [PATCH] Update TestingValidatorTypeCache.cs --- .../TestingValidatorTypeCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NServiceBus.FluentValidation.Testing/TestingValidatorTypeCache.cs b/src/NServiceBus.FluentValidation.Testing/TestingValidatorTypeCache.cs index 7303aae..33230e2 100644 --- a/src/NServiceBus.FluentValidation.Testing/TestingValidatorTypeCache.cs +++ b/src/NServiceBus.FluentValidation.Testing/TestingValidatorTypeCache.cs @@ -3,7 +3,7 @@ class TestingValidatorTypeCache(List scanResults) { static Type validatorType = typeof(IValidator<>); - ConcurrentDictionary typeCache = new(); + ConcurrentDictionary typeCache = []; public bool TryGetValidators(Type messageType, IServiceProvider builder, out IEnumerable validators) {