示例#1
0
 /// <summary>
 /// Run task validation event to perform custom validations on instance
 /// </summary>
 /// <param name="instance">A reference to the current instance.</param>
 /// <param name="taskId">The name of the process step to validate based on.</param>
 /// <param name="validationResults">Object to contain any validation errors/warnings.</param>
 /// <returns>A task supporting the async await pattern.</returns>
 public override async Task RunTaskValidation(Instance instance, string taskId, ModelStateDictionary validationResults)
 {
     await ValidationHandler.ValidateTask(instance, taskId, validationResults);
 }
示例#2
0
 /// <summary>
 /// Run data validation event to perform custom validations on data
 /// </summary>
 /// <param name="data">An instance of the data to be validated.</param>
 /// <param name="validationResults">Object to contain any validation errors/warnings</param>
 /// <returns>Value indicating if the form is valid or not</returns>
 public override async Task RunDataValidation(object data, ModelStateDictionary validationResults)
 {
     await ValidationHandler.ValidateData(data, validationResults);
 }