public static IRuleBuilderOptions<T, TProperty> WithMessageAwait<T, TProperty>(this IRuleBuilderOptions<T, TProperty> rule, Func<Task<string>> errorMessage)
{
return rule.WithMessage(errorMessage().Result); // the error shows here
}
System.AggregateException: "One or more errors occurred. (Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)"
FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
System.Text.ValueStringBuilder.AppendFormatHelper(System.IFormatProvider, string, System.ReadOnlySpan<object>)
string.FormatHelper(System.IFormatProvider, string, System.ReadOnlySpan<object>)
string.Format(string, object)
Nop.Web.Framework.Validators.ValidatorExtensions.IsPassword.AnonymousMethod__0() в ValidatorExtensions.cs