/// <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);
/// <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);