Beispiel #1
0
 /// <summary>
 /// <inheritdoc cref="ValidationMessageOptions.GetConfiguredMessage"/>
 /// </summary>
 /// <param name="validationRule">Source validation rule.</param>
 /// <param name="propertyValue">Property and value to generate message.</param>
 /// <param name="propertyContainer">Property container that holds value.</param>
 /// <param name="messageFormat">Optional message format.</param>
 /// <returns>Configured message.</returns>
 public static Message GetConfiguredMessage(this IValidationRule validationRule, IPropertyValue propertyValue, IPropertyContainer propertyContainer, string?messageFormat = null)
 {
     return(validationRule.GetValidationMessageOptions().GetConfiguredMessage(propertyValue, propertyContainer, messageFormat));
 }