Esempio n. 1
0
 /// <summary>
 /// Execute the logic in the current rule in an async approach.
 /// If the validation of the rule fails a <see cref="ConsensusErrorException"/> will be thrown.
 /// </summary>
 /// <param name="context">The context that has all info that needs to be validated.</param>
 /// <returns>The execution task.</returns>
 public abstract Task RunAsync(RuleContext context);
Esempio n. 2
0
 /// <summary>
 /// Execute the logic in the current rule.
 /// If the validation of the rule fails a <see cref="ConsensusErrorException"/> will be thrown.
 /// </summary>
 /// <param name="context">The context that has all info that needs to be validated.</param>
 public abstract void Run(RuleContext context);