public void Validate(string name, string value, IDictionary <string, string> parameters, ILogger logger) { if (!string.IsNullOrEmpty(value) && value.ToCharArray().Any(c => Illegal.Contains(c))) { logger.Error($"The parameter {Name} contains an illegal character (e.g. {string.Join(",", Illegal)})."); } }