Skip to content
Discussion options

You must be logged in to vote

Priority is to control the order the rules execute, the lower number will run first. You can run a required rule for example before a max length rule.
If you want to use Warning, Info etc you set that in the execute method in the rule calling context. context.AddWarningResult("Warning message..."); context.AddInformationResult("Info message..."); context.AddErrorResult("Error message...");

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oskarjf
Comment options

Answer selected by oskarjf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants