IAsyncValidationRule interface
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
A validation attribute that can also be checked asynchronously, e.g. by a query to the database, which the asynchronous save handlers await instead of calling ValidationContext). It still has to be valid to check synchronously, as the synchronous save handlers and other validators, like the ones of ASP.NET, only do that. ValidationRuleAttribute implements it, see its IsValidValueAsync.
public interface IAsyncValidationRule
Members
| name | description |
|---|---|
| IsValidAsync(…) | Checks a value asynchronously. |
See Also
- Source: IAsyncValidationRule.cs